in reply to Reaped: Formatting of text

It does work in the command line, by default this module add line break \n while you are expecting it to do something like <br>\n for html.

You'll have to look at the documentation to see if you can change the line break it use if not then simply do something like:  $body=~s/\n/<br>\n/g; after your ->format action to replace every new line with "html break" + "new line"