HtmlFormatter stripping new lines
Either I'm using HtmlFormatter wrong or it is removing new lines.
I'm simply calling highlighter like so:
txt = highlight(txt, PythonLexer(), HtmlFormatter())
Then assigning the text to a QTextDocument object... when i do a print(txt) before and after the highlight() call, you can see the new line there before, then it dissapears after the call to highlight().
Am I just doing something wrong or is this how its supposed to work?
Reported by guest