DITA and XMetaL Discussion
tahnee_m August 1, 2013 at 7:23 pm
Leading spaces in PDF outputsAugust 1, 2013 at 7:23 pmParticipants 0Replies 1Last Activity 9 years, 2 months ago
This is a similar problem brought up in the pretty printing affecting HTML outputs discussion here: http://forums.xmetal.com/index.php/topic,3159.0.html
A customer has reported a large number of stray leading spaces in li output when they generate PDFs from our source. When we checked the normalized DITA source, the leading spaces were present. Further investigation of our source revealed that the spaces are present prior to normalization. The quantity, however, was so high that simple author error seemed unlikely. The spaces are visible only in Plain Text view. They are not visible in the XMetaL Tags On view that we recommend writers use, so writers have no idea that the spaces are present. Our writers currently use XMetaL 6.0.
We can’t reliably repeat it, but it seems that when you select text at the beginning of the element and delete it all as one, XMetaL isn’t removing all of the spaces. It also seems that our transforms are ignoring the leading spaces, while the customer’s are not.
So we have two problems:
1. Deleting isn’t deleting everything.
2. The styled views are hiding leading spaces, preventing writers from dealing with #1.
Is this something that should be filed as a defect or is there another solution we could investigate? Thanks for any help.Derek Read August 3, 2013 at 1:12 am
Reply to: Leading spaces in PDF outputsAugust 3, 2013 at 1:12 am
DITA documents are “pretty printed” by XMetaL Author Enterprise by default when you save from Tags On or Normal view. If you do not want this additional white-space to be added to your DITA XML source documents you will need to disable the pretty printing feature.
To turn off pretty printing for the DITA authoring solution run the macro titled “DITA Configuration: Turn OFF Pretty-Printing”.
The DITA Open Toolkit (both the copy we install with XMetaL Author Enterprise and the one available directly from the SourceForge DITA OT project) handles “insignificant white-space” (what we add for “pretty printing”) fine in every case I have seen. I suspect this means your client is either not producing output using the DITA OT, or they have modified the DITA OT so that it is no longer capable of properly dealing with it.
- You must be logged in to reply to this topic.