[viewvc-dev] Problems with Highlight 3

"Georgi D. Sotirov" <[email protected]> Wed, 15 Sep 2010 11:07:13 +0300
Newsgroups gmane.comp.version-control.cvs.viewcvs.devel
Message-ID <[email protected]>
Hello,

After upgrading to Highlight 3.1 I've noticed that my ViewVC
installation doesn't show sources anymore
<https://sotirov-bg.net/bugzilla/show_bug.cgi?id=119>. It appeared that
some long options have change their names or format and a little patch
was necessary. Please, consider applying this and having Highlight
version detected in order to issue the right command line options. I'm
able to help with this, if accepted.


Regards,
-- 

*Georgi D. Sotirov*
Software Developer

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=2659948

To unsubscribe from this discussion, e-mail: [[email protected]].
bug119.diff (text/plain, 804 B)
diff -N -r -U 3 viewvc-1.0.12-orig/lib/viewvc.py viewvc-1.0.12/lib/viewvc.py
--- viewvc-1.0.12-orig/lib/viewvc.py	2010-06-02 15:54:22.000000000 +0300
+++ viewvc-1.0.12/lib/viewvc.py	2010-09-15 10:23:34.000000000 +0300
@@ -1305,10 +1305,10 @@
     highlight_cmd = [os.path.normpath(os.path.join(cfg.options.highlight_path,
                                                    'highlight')),
                      '--syntax', ext, '--force',
-                     '--anchors', '--fragment', '--xhtml']
+                     '--anchors', '--fragment', '--out-format=xhtml']
 
     if cfg.options.highlight_line_numbers:
-      highlight_cmd.extend(['--linenumbers'])
+      highlight_cmd.extend(['--line-numbers'])
 
     if cfg.options.highlight_convert_tabs:
       highlight_cmd.extend(['--replace-tabs',
signature.asc (application/pgp-signature, 259 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyQfrYACgkQqesEzEdeXBF4gACfQYwbCro45yfd8m9ylK2F3wD/
xbkAn0EdypP+hR14nNdppdufajpA4ACU
=lCu7
-----END PGP SIGNATURE-----