Skip to main content
Rsfl
Inspiring
November 20, 2014
Question

XML is cluttered with carriage returns and line feeds - how to suppress?

  • November 20, 2014
  • 1 reply
  • 451 views

Hi all,
at least within text paragraphs we would prefer 'clean' XML without carriage returns. Can Framemaker be configured to avoid these control character?

Below is an example of a DITA file produced by Framemaker. Evidently this is related to the Pretty Printing feature and I do admit that it increases the readability. However they cause some issues for us. Note that the carriage returns in the paragraph are at arbitrary positions, not at the end of the lines as they appear in the Framemaker editor (I inserted the word "End" at the end of the first line).

Robert

This topic has been closed for replies.

1 reply

ScottPrentice
Inspiring
November 21, 2014

By default, FrameMaker adds a CR at around 70-80 characters unless instructed to do otherwise.

Also, soft returns (SHIFT+ENTER) are lost unless you're in a pre formatted element like a <codeblock> (which is probably why there's no CR after your "End" text.

If you want to limit the seemingly arbitrary CRs, you must tell FM where to put them. Add the following rule to the structure application rules file ..

element "p"

{

  writer line break is 99999 characters;

}

…scott