parent
0a17f59e67
commit
69a7a9164b
@ -80,6 +80,10 @@ describe("V2XmlFormatter", () => {
|
|||||||
testFormatter(xmlFormatter, options, "issue-189");
|
testFormatter(xmlFormatter, options, "issue-189");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should not add extra line breaks before closing tags", () => {
|
||||||
|
testFormatter(xmlFormatter, options, "issue-193");
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
12
src/test/test-data/issue-193.formatted.xml
Normal file
12
src/test/test-data/issue-193.formatted.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<xsl:template name="btn-export-excel-pdf">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md button-wrapper text-center">
|
||||||
|
<a class="btn btn-outline-info" role="button" href="javascript:template.printToPdf()" target="_blank">
|
||||||
|
<i class="far fa-file-pdf"> </i> Export to PDF
|
||||||
|
</a>  
|
||||||
|
<a class="btn btn-outline-info" role="button" href="javascript:template.exportToExcel()" target="_blank">
|
||||||
|
<i class="far fa-file-excel"> </i> Export to EXCEL
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</xsl:template>
|
12
src/test/test-data/issue-193.unformatted.xml
Normal file
12
src/test/test-data/issue-193.unformatted.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<xsl:template name="btn-export-excel-pdf">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md button-wrapper text-center">
|
||||||
|
<a class="btn btn-outline-info" role="button" href="javascript:template.printToPdf()" target="_blank">
|
||||||
|
<i class="far fa-file-pdf"> </i> Export to PDF
|
||||||
|
</a>  
|
||||||
|
<a class="btn btn-outline-info" role="button" href="javascript:template.exportToExcel()" target="_blank">
|
||||||
|
<i class="far fa-file-excel"> </i> Export to EXCEL
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</xsl:template>
|
Loading…
Reference in New Issue
Block a user