http://www.perlmonks.org?node_id=976262


in reply to Re^3: Formatting Input
in thread Formatting Input

As far as i can see it is when written back to the browser and into the email. It isn't when printed to the PDF Document though

<p>$Contents</p>

Replies are listed 'Best First'.
Re^5: Formatting Input
by ww (Archbishop) on Jun 14, 2012 at 17:27 UTC
    Unclear, ambiguous, lacking a clear antecedent to both instances of "it." Downvoted for that very serious shortcoming.
Re^5: Formatting Input
by Anonymous Monk on Jun 14, 2012 at 18:47 UTC

    You're wrapping the whole string (several paragraphs) into a single HTML paragraph tag. The grandparent was suggesting that you parse the string for paragraphs and manually insert the necessary paragraph tags.

    Do look at the HTML source your program generates and check that everything is there. You may also want to try white-space: pre; if you want a boring CSS solution (but nothing compares to actually understanding the problem!)