Ticket #4339 (closed defect: fixed)
PygmentsRenderer produces unnecessary spans
| Reported by: | Tim Hatch <trac@…> | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | high | Milestone: | 0.11 |
| Component: | version control/browser | Version: | devel |
| Severity: | normal | Keywords: | mimeview highlighting |
| Cc: |
Description
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?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.



