Dear all,
I have a problem with Mimeview.render.
I am using a macro that uses Mimeview.render to render source code with syntax highlighting using Mimeview.render.
The highlighting itself works fine, but blank lines are stripped from the source code. I think that Genshi is the culprit where blank lines are stripped from the output by default. I also think that I have tracked down the problem to the Mimeview.render function and the following line:
I guess that this is the problem since I found out about the xml:space attribute and that I have to set it to "preserve" to keep blank lines here:
Is there any way that the statement in line 791 of mimeview/api.py could be changed to preserve the blank lines? This would be great since source code can be hard to read without any intentional blank lines.
Thanks,
Manuel