-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Preserve spacing in string literal within element #478
Comments
I'm not sure I understand the logic of that graphic. Why is it that the whitespace within the |
The whitespace surrounding text within an XML element or attribute value are considered to be "Significant whitespace". In the case of If you add a |
That's not my understanding of the XML spec. From what I understand unless you specify an |
You are absolutely correct. When
However, this issue is about formatting when |
@kddnewton , please let me know if more clarification is required on this issue. |
Instead of additional attribute, I would think having additional options "semantic" or something to that effect would be more easier to consume. As current options is meant to alter how whitespaces are treated and this proposal is just different way to treating it so additional option is not not warranted. |
@brsanthu , I agree with your proposal.
@kddnewton , what do you think? |
I'm reopening this issue #138 .
I'm suggesting a new option (
preserveSignificantWhitespace: true/false
) to preserve "Significant Whitespace" within XML element and attributes. (As shown by the green spaces in the diagram below)The text was updated successfully, but these errors were encountered: