You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the html formatter for xml I found that if the elements have a namespace prefix, the element after a self-closing-tag is in the same line as the self-closing-tag.
When using the html formatter for xml I found that if the elements have a namespace prefix, the element after a self-closing-tag is in the same line as the self-closing-tag.
For example:
is formatted to something like:
There is a simple fix:
Replace
token_text.match(/\w+/)
withtoken_text.match(/[\w:]+/)
andreplace
.match(/<\s*(\w+)/)
with.match(/<\s*([\w:]+)/)
The example is contrived and the output may not be absolutely correct, but the point is, that the pattern does not account for a namespace prefix.
If you give me enough time, I will send a pull request
The text was updated successfully, but these errors were encountered: