Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

21 Mapping text formats to HTML/XML > 21.10 Configuring preformatted text for HTML/XML > 21.10.1 Eliminating line wraps in preformatted text


21.10.1 Eliminating line wraps in preformatted text

For preformatted text in HTML and XML, by default Mif2Go retains line breaks exactly as they appear in your FrameMaker document. This applies to all of the following:

FrameMaker line wraps

Shift+Enter forced returns

Paragraph breaks.

To omit only FrameMaker line wraps (typesetting “soft returns”) and show wrapped lines full length in HTML or XHTML <pre> elements and XML preformatted elements:

[HTMLOptions]

; IgnoreWrap = No (default, \n where wrap occurs) or Yes

IgnoreWrap=Yes

When IgnoreWrap=Yes, line wraps introduced by FrameMaker are ignored for any pre element; see §21.3.1 Assigning HTML tags and attributes to paragraph formats.

When IgnoreWrap=No, line wraps introduced by FrameMaker in paragraphs mapped to pre elements become line breaks in HTML output.

To omit all line breaks from text mapped to pre elements;

[HTMLOptions]

; UnwrapPRE = No (default) or Yes (ignore line breaks in PRE)

UnwrapPRE = Yes

When UnwrapPRE=Yes, Mif2Go ignores all line breaks in text mapped to preformatted elements: those caused by FrameMaker line wraps, those caused by FrameMaker Shift+Enter forced returns (typesetting “hard returns”), and those caused by paragraph breaks. UnwrapPRE is effective only within <pre> elements in HTML and XHTML, and within preformatted elements in XML.

To preserve leading spaces in preformatted text, also assign the following format property to the paragraph format:

[HTMLParaStyles]

ParaFmt = NoWrap

See also:

§13.6.4 Suppressing line breaks in HTML and XML output

§14.4.5 Configuring forced returns for XML

§21.3.8 Deciding how to treat forced returns



21 Mapping text formats to HTML/XML > 21.10 Configuring preformatted text for HTML/XML > 21.10.1 Eliminating line wraps in preformatted text