| Summary: | cvsweb+enscript formatting bugfix | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Matthew Mondor <mmondor> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
There was an error in the previous diff; the correct one:
@@ -3815,7 +3815,7 @@
if ($linenumbers) {
my $ln = 0;
while (<ENSCRIPT_OUT>) {
- printf '<a id="l%d" class="src">%5d: </a>', (++$ln) x 2;
+ printf qq{<a id="l%d" class="src">%5d:</a>\t}, (++$ln) x 2;
print $_;
}
} else {
--
Matthew Mondor
State Changed From-To: open->feedback Can you point me at an example URL which shows this behaviour? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 No feedback for a long time. Set a time-out of 2 weeks. After that I will close this PR. - -- Johann Kois jkois(at)FreeBSD.org FreeBSD Documentation Project FreeBSD German Documentation Project - https://doc.bsdgroup.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxb1lkACgkQ/rDr791hwtiTPQCfaWrR3mKrVXB2XZb9Xbzkv0ki GQUAoLlqCOgyTmlyZxAfL23CIcXVMn3v =E04L -----END PGP SIGNATURE----- State Changed From-To: feedback->closed I see that jkois was setting this for 14days timeout in 2010, it's almost 2012, so the timeout had occured :-). Thanks! |
cvsweb used with enscript for code highlighting would not output the first tab of every line correctly, causing the first level to be badly indented, at least for the case where the code uses tabs rather than spaces. The reason was that after the line number header no tab was found to realign the tabulator before the code line is displayed. Fix: @@ -3815,7 +3815,7 @@ if ($linenumbers) { my $ln = 0; while (<ENSCRIPT_OUT>) { - printf '<a id="l%d" class="src">%5d: </a>', (++$ln) x 2; + printf qq{<a id="l%d" class="src">%5d:\t}, (++$ln) x 2; print $_; } } else {