abgoyal/html2text — comment on commit 6c32e4f74e581bffac15688c5f7e85641aecea56
File: html2text.py line 285
By aaronsw:

I think this should be:

self.lastWasNL = s[-1][-1] == '\n'