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

Get XML format command to preserve whitespace as XML value #96

Closed
hmobius opened this issue Jan 2, 2019 · 2 comments
Closed

Get XML format command to preserve whitespace as XML value #96

hmobius opened this issue Jan 2, 2019 · 2 comments
Milestone

Comments

@hmobius
Copy link

hmobius commented Jan 2, 2019

I frequently want to space-separate a value in my XSL output and do so by using the following XSL

    <xsl:template match="d:blah">
        <xsl:text> </xsl:text>
        <xsl:element name="{local-name()}">
            <xsl:apply-templates />
        </xsl:element>
    </xsl:template>

But when I format the XSL using your extension, it removes the space from between the xsl:text tags. Please can you add a setting to preserve whitespace?

@NikolasKomonen
Copy link
Contributor

NikolasKomonen commented Jan 2, 2019

For sure. This is now an upstream issue, it can be found here : eclipse/lemminx#273

@NikolasKomonen
Copy link
Contributor

@hmobius this will be available in the v0.4.0 release

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

3 participants