[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] new round of html bugs
From: |
Gaius Mulley |
Subject: |
Re: [Groff] new round of html bugs |
Date: |
Fri, 24 Aug 2001 23:13:40 +0100 |
Hi Werner,
here is a fix for the bug you reported back in June. Backslashes
should now be preserved. Please could people test.
For example in ESR's pic guide:
.KS
.DS
.CW
\&.de PS
\&.br
\&.sp \\n[DD]u
\&.ie \\n[.$]<2 address@hidden bad arguments to PS (not preprocessed with pic?)
\&.el \{\
\&. address@hidden (u;\\$1)+1v
\&. in +(u;\\n[.l]-\\n[.i]-\\$2/2>?0)
\&.\}
\&..
\&.de PE
\&address@hidden
\&.sp \\n[DD]u+.5m
\&..
.R
.DE
.KE
should now work.
> 2. The verbatim output directly below the image (showing a .PS
> ... .PE environment) is incorrect. All backslashes are gone.
> This is something serious.
However this patch does not fix the \e problem in pic.ms.
[ The \e is not preserved in pic.ms (-Thtml), although it is
in small test examples.
I've checked the ditroff output - the \e is not preserved so
suspect the bug to be in troff -Thtml or macro sets.. ]
Gaius
--- groff-cvs/src/devices/grohtml/post-html.cc Tue Aug 21 15:50:33 2001
+++ groff-html/src/devices/grohtml/post-html.cc Fri Aug 24 21:15:01 2001
@@ -2636,6 +2639,7 @@
}
}
} else {
+ b = char_translate_to_html(f, buf, buflen, '\\', b, and_single);
b = char_translate_to_html(f, buf, buflen, str[i], b, and_single);
i++;
}
- Re: [Groff] new round of html bugs,
Gaius Mulley <=