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: http://trac.edgewall.org/browser/tags/trac-0.12.2/trac/mimeview/api.py#L791 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: http://genshi.edgewall.org/ticket/78 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 -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To view this discussion on the web visit https://groups.google.com/d/msg/trac-dev/-/Mg2CUUJgCqoJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
