aaronsw/html2text — pull request #37 by inklesspen (2012-04-27 00:47:15+00:00)
Title: Allow paragraphs beginning with an emdash (--) to be word-wrapped.

A friend of mine uses html2text to create plain-text formatted versions of his fiction. He recently found a case where a paragraph starting with an emdash wouldn't be line-wrapped. I've done my best to fix this cleanly, though the fix isn't as elegant as I would have liked. Test included. (The text in the test file has been replaced by some lorem ipsum, since my friend wasn't comfortable with his fiction being included in the html2text repo.)