Format and Indent problem
Posted: Mon Dec 02, 2024 3:41 pm
Hi,
I have a couple of problems with the Format and Indent I can't solve and hope for your help. The problem is located to one template as the rest of the XSLT behave as expected - keeping the empty lines
When i try to insert a new line between </xsl:if> <xsl:if > the "Format and Indent" remove them and place them on the same line
Whished formatting
If I the press "Format and Indent" I get
When I insert a extra line between the 2 lines below it's removed when I push the "Format and Indent"
Note
In Options - Preferences - Editor - format - XML is have marked the "Perserve empty lines"
Regards,
Dan
I have a couple of problems with the Format and Indent I can't solve and hope for your help. The problem is located to one template as the rest of the XSLT behave as expected - keeping the empty lines
When i try to insert a new line between </xsl:if> <xsl:if > the "Format and Indent" remove them and place them on the same line
Whished formatting
Code: Select all
<xsl:if test="Test something ''">
</xsl:if >
<xsl:if test="Something ''">
</xsl:if>
Code: Select all
<xsl:if test="Test something ''">
</xsl:if > <xsl:if test="Something ''">
</xsl:if>
When I insert a extra line between the 2 lines below it's removed when I push the "Format and Indent"
Code: Select all
<xsl:copy-of select="cbc:Note" copy-namespaces="no" />
<xsl:copy-of select="cbc:TaxPointDate" copy-namespaces="no" />
Note
In Options - Preferences - Editor - format - XML is have marked the "Perserve empty lines"
Regards,
Dan