Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rouge incorrectly flags endlines in an XML attribute value as invalid #663

Closed
mojavelinux opened this issue Apr 22, 2017 · 0 comments
Closed

Comments

@mojavelinux
Copy link
Contributor

mojavelinux commented Apr 22, 2017

Rouge incorrectly flags endlines in an XML attribute value as invalid. (In other words, it does not allow endlines in an XML attribute value). However, it's perfectly valid to have endlines in an XML attribute. Endlines are often used to organize very long attribute value names such as XSD URIs in the schemaLocation attribute.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
    xmlns:jms="http://www.mulesoft.org/schema/mule/jms"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
        http://www.mulesoft.org/schema/mule/core
        http://www.mulesoft.org/schema/mule/core/current/mule.xsd
        http://www.mulesoft.org/schema/mule/jms
        http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd">
</mule>

You can see even here on GitHub it's recognized.

@jneen jneen closed this as completed in 720158e Apr 26, 2017
jneen added a commit that referenced this issue Apr 26, 2017
resolves #663 allow endlines in XML attribute values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant