Method, system, and computer code for preparing markup language documents
containing multi-line text elements for WYSIWYG printing. The document is rendered
in a prepress server system by a duplicate of the browser that was used to prepare
the document in the client system. User-imposed line breaks are identified by reviewing
text elements for break characters. Browser-imposed line breaks are identified
by comparing spatial location information from the browser for each sequential
pair of characters in a text element. The collective line break information is
used to ensure that the line breaks viewed by the user are maintained when the
document is converted to a prepress system.