Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#4386 closed defect (duplicate)

Pygments generates garbage for JavaScript file

Reported by: Manuzhai <manuzhai@…> 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 Christian Boos, 17 years ago

Keywords: pygments added

Can you try with a more recent version of Pygments? (e.g. 0.6dev-r2411)

comment:2 by Tim Hatch <trac@…>, 17 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 Manuzhai, 17 years ago

Yes, I'm sure I'm at 0.3.6 (just checked it again just to make sure).

And yes, Enscript stopped working for me when I upgraded to r4444.

But this problem now seems fixed (in r4463).

comment:4 by Christian Boos, 17 years ago

Milestone: 0.11
Resolution: duplicate
Status: newclosed

Well, nothing relevant to this issue changed in the meantime ;)

Ok, if this happens again (or for someone else), simply follow-up on #4337.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.