Re: [viewvc-dev] Errors viewing rpm spec files with Name: etc on line 1

"C. Michael Pilato" <[email protected]> Thu, 25 Oct 2012 21:37:10 -0400
Newsgroups gmane.comp.version-control.cvs.viewcvs.devel
Organization CollabNet, Inc.
Message-ID <[email protected]>
------=_Part_13928_1957587291.1351215434836
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

On 10/25/2012 06:54 PM, Barry Jackson wrote:
> There is a problem with the pygments handling of rpm spec files when the =
content of line one contains Name: or Epoch: etc. All text is outlined in r=
ed and seen as an error.
> Here is an example:-
> http://svnweb.mageia.org/packages/cauldron/yaflight/current/SPECS/yafligh=
t.spec?view=3Dmarkup&pathrev=3D310060
>=20
> If a macro is placed on line one the problem goes away.
>=20
> This seems to have started in 1.1.12 with Revision 2658.
> "Failing all else, use the Pygments guess_lexer() function to guess a fil=
e's content type from the first line of its text"
>=20
> I hope this can be fixed as it's quite distracting ;)

Yup.  That's one ugly display, all right!

Would it be possible for you to set the mime-type for .spec files to
something like "text/plain" in your mimetypes.conf file?

--=20
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=3D4251&dsMessageId=3D3=
023578

To unsubscribe from this discussion, e-mail: [[email protected]=
.org].
------=_Part_13928_1957587291.1351215434836
Content-Type: application/pgp-signature; name=signature.asc
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=signature.asc
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJQielGAAoJEPXg8AH+aBMzcBAP/iaYIAaB8P3+UqDyH7Am2c/j
DDIuqc8JTlPHErh3RiBu6tVgRWh9BbLPwCMQQnhYTkzqIuYDfNl+OSFOlVoCWOJA
GlTafoEAJ8HSOAvlB1wVaGvqeWqXRCxPN4VaxLFMDrOrKHlk/GUUh4HVg3IGmFBL
SA/WZ/pC6TIknsgki4Vq8hQZY331ForcshmM0MdMWt+Z3lk0w463g90ZeT0DyeB2
arZO6F1ITMcjLu2NyTbjchLSEi7ZZHsnNG5O+TyC+AXq4SKGTUYp/BPTcm/ofI2k
OQSCqazvOrm+3q7a3LxhcPOjLqUA9pnPSsMQPSSMPSBIOTcE736746RiydSz25Zc
QC9o87weIl+eG+ATYQKQPZU4FLNgT3lBXonPOER5Opp0SeiH//ipQV0zI2vvHChx
CWFc5IyXVHhi90ppECJUP4YV338wXYfrsddrrKWDUQVyVj8yiRQudZaeElrvmThb
L0f5oU8IlAXYGKhA9KL5s5gzSn1O7YGxnKHUa5O0bQXsxoDt2blMQOgx1MWE1ecB
ZT/J2uG1W56eV3SilYk7aA+jW3fGkQ5vPT9Z6zZUKdpggmIB27sB/Lp7LBGE8Zkh
ybnYtv8IfEcLiBGDIvGc3pbi6WAEh9F8bqs6RI3KqPaQHn8TJA+c2NKt64/Qv0wV
XPsgUu5iwL2skus904va
=M0Pu
-----END PGP SIGNATURE-----

------=_Part_13928_1957587291.1351215434836--