| Summary: | viewvc displays many spec files incorrectly. | ||
|---|---|---|---|
| Product: | Websites | Reporter: | Barry Jackson <zen25000> |
| Component: | svn.mageia.org | Assignee: | Sysadmin Team <sysadmin-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | luigiwalser, makowski.mageia, sysadmin-bugs, tmb |
| Version: | trunk | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | python-pygments-1.5-2.mga3 | CVE: | |
| Status comment: | |||
|
Description
Barry Jackson
2012-10-26 11:47:13 CEST
If we knew what mimetype it is detecting as when it highlights spec files *correctly*, we could manually set it to that. CC:
(none) =>
luigiwalser Having searched the pygments site, it seems there is no lexer for rpm spec files. I have tried a whole range of pygments lexers on a spec file and I cannot replicate the "normal" view that we are seeing where only text preceded by "%" has a colour change. I don't think that is very useful anyway, so I would vote for "text/plain" until a lexer for .spec becomes available (if ever).
Manuel Hiebel
2012-10-26 22:21:23 CEST
Keywords:
(none) =>
PATCH Any python experts feel like writing one? :- http://pygments.org/docs/lexerdevelopment/ (In reply to comment #4) > Any python experts feel like writing one? :- > > http://pygments.org/docs/lexerdevelopment/ That'd be worth asking on the -dev list, maybe there will be interest. (In reply to comment #5) > > That'd be worth asking on the -dev list, maybe there will be interest. > Done :) Good news - an RPMspec lexer has been written and it tests OK here. https://bitbucket.org/gentoo90/pygments-main/changeset/346513eed7b5767e7e456c0b85361fd2 Not sure when it will be available in a tarball so we can update our package but I will keep a lookout :) Pygments Release 1.6 rc 1 is out! ...and it includes the above RPM spec lexer. Can we get this into Cauldron to fix this bug before Mga3 ? Component:
svn.mageia.org =>
RPM Packages
Manuel Hiebel
2013-01-19 16:15:12 CET
CC:
(none) =>
sysadmin-bugs
David Walser
2013-01-19 16:20:30 CET
CC:
(none) =>
makowski.mageia Philippe, See -dev ML subject "Update question about python-pygments" I have updated package ready - if you wish I can commit for your review. Barry Since time is critical I have committed the new version and also patched it to fix highlighting of 'Suggests:' that I noticed was missing. I will report it upstream. I will also request a submit on -dev ML sorry for the delay, I did not saw the emails and thanks for having taking care of (In reply to comment #11) > sorry for the delay, I did not saw the emails > and thanks for having taking care of OK no problem. This is now in Cauldron, and needs to be applied to the Mageia server that handles ViewVC Keywords:
PATCH =>
(none) (In reply to comment #12) > (In reply to comment #11) > This is now in Cauldron, and needs to be applied to the Mageia server that > handles ViewVC "This" may not now be obvious. It refers to python-pygments package python-pygments-1.6-0.rc1.1 installed on svnweb Status:
NEW =>
RESOLVED \o/ Yay :) |