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

[Formatter] Add possibility add empty lines between tags #821

Open
AndreyMiloserdov opened this issue Oct 9, 2024 · 0 comments
Open

[Formatter] Add possibility add empty lines between tags #821

AndreyMiloserdov opened this issue Oct 9, 2024 · 0 comments

Comments

@AndreyMiloserdov
Copy link

In XSLT, it is common to put empty lines between tags:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:output method="html" indent="yes"/>

    <xsl:template match="/">
        Article - <xsl:value-of select="/Article/Title"/>
        Authors: <xsl:apply-templates select="/Article/Authors/Author"/>
    </xsl:template>

    <xsl:template match="Author">
        -  <xsl:value-of select="." />
    </xsl:template>

</xsl:stylesheet>

But at this moment all old files collapse empty lines

Suggest to add new option like a

xmlEmptyLineBetweenTags: true,
xmlEmptyLineBetweenTags: { exceptBounds: true }, // no empty line at the start and end of parent tag
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