Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

21 Mapping text formats to HTML/XML > 21.3 Mapping paragraph formats > 21.3.10 Eliminating empty paragraphs in text


21.3.10 Eliminating empty paragraphs in text

If a paragraph is empty, it usually takes up more space in HTML than it did in FrameMaker, often three times as much. To eliminate empty paragraphs:

[HTMLOptions]

; RemoveEmptyParagraphs = No (default) or Yes (remove paras w/o text)

RemoveEmptyParagraphs = Yes

When RemoveEmptyParagraphs=Yes, tags for empty paragraphs in text are not included in HTML output. This setting does not affect either of the following:

empty paragraphs in table cells, for which there is a separate configuration setting; see §24.4.10 Deciding what to do with empty paragraphs in table cells

preformatted text, where empty paragraph tags are always preserved.

Mif2Go considers a paragraph that contains only markers (no text) to be empty for the purpose of generating HTML tags. Therefore when RemoveEmptyParagraphs=Yes, the markers still work, even though the paragraph itself disappears. However, any macro code you assign to the paragraph format will not be executed for empty instances of that format.

See also:

§23.5.7 Retaining run-in images in otherwise empty paragraphs

§24.4.10 Deciding what to do with empty paragraphs in table cells



21 Mapping text formats to HTML/XML > 21.3 Mapping paragraph formats > 21.3.10 Eliminating empty paragraphs in text