[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-indent] fix for texinfo2man.c (fwd)
From: |
Santiago Vila |
Subject: |
[Bug-indent] fix for texinfo2man.c (fwd) |
Date: |
Tue, 12 Jul 2005 13:27:30 +0200 (CEST) |
Hello.
In Debian Bug#132399 (see http://bugs.debian.org/132399) Matt Kraai reports:
The indent manual page uses \' instead of '. This is rendered as
an accent, =B4 (0xb4), which displays as a solid box on my console.
It only needs to be escaped when it comes at the start of the
line, and the appropriate way to escape it is by preceding it with
a \& (a zero-width space).
Well, I have received a patch from Peter De Wachter <address@hidden>
to fix this bug. Quoting Peter:
Hi, I was browsing the help-tagged bugs and this one looked not too
hard. It turns out finding good documentation on groff is not that easy
at all :) but according to #120306 \(oq and \(cq should be used for left
and right single quotes, and the attached patch makes texinfo2man.c do
that.
This is the patch:
diff -ru indent-2.2.9.orig/man/texinfo2man.c indent-2.2.9/man/texinfo2man.c
--- indent-2.2.9.orig/man/texinfo2man.c 2005-05-25 13:57:53.000000000 +0200
+++ indent-2.2.9/man/texinfo2man.c 2005-05-25 14:00:53.000000000 +0200
@@ -143,13 +143,23 @@
printf (" .");
return;
}
+ if (c == '\'')
+ {
+ printf("\\(cq");
+ return;
+ }
+ if (c == '`')
+ {
+ printf("\\(oq");
+ return;
+ }
if (no_break && c == '\n')
c = ' ';
if (no_break && c == ' ')
putchar ('\\');
if (to_upper)
c = toupper (c);
- if (c == '\'' || c == '`' || c == '\\')
+ if (c == '\\')
putchar ('\\');
putchar (c);
at_start_of_line = at_start_of_line_for_dot = (c == '\n');
I plan to apply it to the Debian indent package. Could it be included
in indent-2.2.10?
Thanks.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-indent] fix for texinfo2man.c (fwd),
Santiago Vila <=