Re: [viewvc-users] How to view file without line numbers?
"C. Michael Pilato" <[email protected]> Mon, 25 Feb 2013 10:43:44 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <512B86B0.3040005__35172.8671732873$1361807054$gmane$org@collab.net> |
On 02/25/2013 10:03 AM, David Aldrich wrote:
> Hi
>
> When I select ‘View File’ or ‘Annotate’ in ViewVC to view an artefact (e.g.
> a source file) the display always shows line numbers. This is inconvenient
> when I want to copy/paste code from the browser into an IDE, because I then
> need to manually delete the line numbers.
>
> Is there a way to disable line numbers in one of these views?
There currently is not, short of hacking on the templates. The lines in the
markup/annotate view are presented as rows in a table, so even if you remove
the line number column, you'll still be attempting to copy/paste from a
table rather than from plain text. Further, my experiments in removing the
table presentation altogether and displaying the text as a single blob of
information (as recently as last Friday) revealed that if you are using the
syntax highlighting feature, you *still* can't successfully copy and paste
code from the browser window because whitespace gets munged. (Sadly, I have
no explanation for that.)
I think your best bet is really to just use the "download as text" view
("...&view=co&content-type=text/plain") for this purpose.
--
C. Michael Pilato <[email protected]>
CollabNet <> www.collab.net <> Enterprise Cloud Development
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3049761
To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJRK4awAAoJEPXg8AH+aBMzl+gP/0MSUQq2kkhRs7bA3hYM7hcm sKTg85HQSq8G0AeK1AJBzCjGYgv/crUwUxFv1Ebm97VysFuiItM+HzL3VWeVNDLK BOinfAmOjg6b3ojNQlgDjGW3Ygt+cmvoNxNuA4be60785BFlVYjdYFzTlrjznzTz 8Mmq/wgXFSTcKMNUEreN6EwbT1eEkGY3+PhdYblmqreTglDJs04ZB4LNxgGLO60+ EEdGu+ELhWvfv+XEXjyjRWrGZD5bVyDvyHTwfHKasBEYsklK/FNOKNiT3qJfLvz7 2tol2pZIP/mZYw2iCy3D5ZYv77nal6Gju0sWWJZAU0+4pq/MCfsxbUI7MfvaCszv H+FGfTjOo6hN+D/n1RVcsqbXJTjEc89L4/NXFnRQ+i6Y4wxaUE6hhFJtcrCbxRWk JNChP+sujqbD2WRTrceo2yKJZN12g12tqzgSVSA/ykbX6vrotSKD9Zx49xXOW7nc T8Z/1bn7Cimn1GMqDdUwuqzpjG/0mk0V/T3mMZEY3MP1kzujBAF9XC+nZBeOByGn e2sXRM9KWjnaAKCa6mr+8FNiDJTnNB7/NLNd4zobSQpQbfF7Sw+DBB27l/qXRcDO rXzZHf5tFYuA/nj5NBHz5GgTEOAMJdjPnO341Am5jmOze4xA+7uppE+VZKG8LF0X 3qD5pLsvAKAL1uPyoBZ4 =InQ9 -----END PGP SIGNATURE-----