Remove leading and ending new lines when formatting text as HTML
Merge pull request #440 from scrollback/composefix

Remove leading and ending new lines when formatting text as HTML