Closed infotexture closed 2 years ago
The refactoring stylesheet does not have xsl:output indent="yes". I'm kind of reluctant to let the stylesheet to indent the output as it has no schema information and in cases like this:
<p><b>prefix</b><b>suffix</b></p>
it will probably consider "p" to be element only and add new lines and indentation between the inlines.
So as the stylesheet is not indenting, once it removes the titlealts element it leaves the newline and indentation which are before it in place. Maybe Oxygen's batch format and indent from the Project view could be applied on the converted DITA topics just to remove this extra indentation.
I see. Thanks for explaining.
Then I would say this is working as designed and will close the issue.
It's certainly easy enough to clean up the results with another Format & Indent run, or tools like https://github.com/prettier/plugin-xml.
When running the converter on the DITA-OT documentation source files, I noticed that the conversion leaves behind empty lines in places where deprecated markup was removed, and inserts extra empty lines along with new DITA 2.0 markup.
Expected result
Observed result