PygmentsRenderer produces unnecessary spans
|Reported by:||Owned by:||Christopher Lenz|
On trunk post-r4399, it's possible (and likely) to end up with
<span class=""> in the rendered source (I think the Pygments plain text one does this for everything).
I think this is due to
pygments.formatters.html.HtmlFormatter._get_css_class (source:trunk/trac/mimeview/pygments_renderer.py@4399#L219) returning an empty string.
Perhaps it's returning the wrong class, but if indeed it's supposed to be the empty string, then I suggest the span not be output?
Change History (11)
comment:1 by , 13 years ago
|Keywords:||mimeview highlighting added|
|Status:||new → assigned|