Preventing page breaks in text using HTMLDOC
The standard behavior of HTMLDOC with a block of text, as with any browser, is to break the text across pages if the text won't fit on the page. This can be prevented however, by simply inserting a comment before the element containing the text. An example is as follows:
<!-- NEED 5 -->
where 5 is the number of lines that the block of text needs remaining on the page. NOTE: In many cases, it usually helps to add an extra line, as any elements within that add to the number of lines of text (such as <br /> tags) will increase the number of lines HTMLDOC sees the content as taking up.
Further information on other comment tag based page formatting for HTMLDOC can be found in the documentation located at http://www.htmldoc.org/documentation.php/Comments.html.
- csigman's blog
- Login or register to post comments

