Jonas Camillus Jeppesen
Jonas Camillus Jeppesen
@galeo Your rendering (from an editor with source highlighting) is indeed how it should be rendered. And the problem is indeed single tokens which contain `\n` newline characters. The simplest...
@galeo Out of curiosity, what is your use case? One where HTML is not satisfactory / an option...
How about a table-based implemenation like the HTMLFormatter? Producing output like this (and of course with lines handled correctly): [test-table.rtf.txt](https://github.com/pygments/pygments/files/6974372/test-table.rtf.txt)  That implementation would potentially be easier since it only...
@galeo Please test again, I've added logic to handle numbering of multi-line strings and doc strings correctly. I've also implemented options to only number every n line and to specify...
@galeo Indeed, users could choose between the two, like with the HTML-formatter. Anyone with any ideas or opinions on highlighting lines? RTF has a `{\highlightN }` directive which could be...
@akraus53 I'd like to finish the project and submit a PR! Judging by the comments above a few people, my self included, seem to have solved most problems or come...
@akraus53 An update: I'm just about ready to make the PR, but what appears to be a bug in Libre Office (which I used to view/render the RTF-output) held me...
@akraus53 Cheers - I decided to split all tokens containing `\n` (unless the token only contained one `\n` character). Otherwise we would have to test for all tokens able `\n`...
@TriangleBear Thank you for reporting your observation. When do you encounter it, could you provide a complete console session log (commands + output)? Maybe an example sphinx-project which will produce...
I've confirmed this, although I find the error to be `AttributeError: 'function' object has no attribute 'startswith'` (so I've changed the title of your issue). It appears the last commit...