Opened 18 years ago
Closed 18 years ago
#4386 closed defect (duplicate)
Pygments generates garbage for JavaScript file
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | version control/browser | Version: | devel |
Severity: | normal | Keywords: | pygments |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
With a simple JS file rendering using Trac trunk (r4444), Genshi 0.3.6, Pygments 0.5.1, I get a garbage stream in the browser. Starts something like this:
STARTspanclassnx-1-1TEXTsfHover-1-1END
You probably get the idea. This happened to me a little bit earlier (with PHP files) before I upgraded Genshi from 0.3.5 to 0.3.6. While I'm sure Pygments is much better than Enscript (which I used before and which never really got me into trouble before today, when I upgraded Trac and it stopped working), it seems this solution is not that robust.
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
Keywords: | pygments added |
---|
comment:2 by , 18 years ago
Those look like Genshi events, which I saw in #4337. Are you sure you're at 0.3.6?
Also, did I read correctly that Enscript no longer works for you?
comment:3 by , 18 years ago
comment:4 by , 18 years ago
Milestone: | 0.11 |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Well, nothing relevant to this issue changed in the meantime ;)
Ok, if this happens again (or for someone else), simply follow-up on #4337.
Can you try with a more recent version of Pygments? (e.g. 0.6dev-r2411)