Home Forums General XMetaL Discussion ‘lines too long’ error message Reply To: ‘lines too long’ error message

Derek Read

Reply to: ‘lines too long’ error message

You sort of understand, but perhaps a little bit backwards.

Pretty Printing is enabled in the CTM's section, but it does not affect any element unless that element has a section defined in the CTM, and then you have 10 different options for each element which provides quite a bit of flexibility:

NewLineAfterStartTag
NewLineBeforeStartTag
BlankLineAfterStartTag
BlankLineBeforeStartTag
NewLineAfterEndTag
NewLineBeforeEndTag
BlankLineAfterEndTag
BlankLineBeforeEndTag
IndentContent

In addition to those 9 you can use the following for elements that should not have their content modified (usually used for elements whose content that may contain whitespace that is significant, such as the equivalent of a pre element in XHTML).

PreserveSpace

So, you would enable pretty printing for the DTD and then turn it on for those elements you need pretty printed, in your case setting it on row and nothing else might be good enough.

Reply

Products
Downloads
Support