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

Indent changes an " into an ' #119

Open
richClubb opened this issue May 24, 2021 · 1 comment
Open

Indent changes an " into an ' #119

richClubb opened this issue May 24, 2021 · 1 comment

Comments

@richClubb
Copy link

richClubb commented May 24, 2021

When performing an Indent XML on sublime it changed the & into a ' when doing the Indent XML.

For example <hello><test1>&apos;</test1></hello>

Gets turned into

<hello>
    <test1>'</test1>
</hello>

But <hello><test1>&quot;</test1></hello>

becomes

<hello>
    <test1>&quot;</test1>
</hello>

I'm pretty sure that the latter is the correct behaviour. This is the same for all the other XML escape sequences, it only effects the & escape sequence

@Marchap
Copy link

Marchap commented Aug 24, 2021

Glad I'm didn't have to write this!
Adding that auto-indent also converts "&#37;" to "%", but doesn't convert "&amp;". If I had a setting, I'd prefer escaped characters weren't converted.

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

2 participants