Date: Sat, 28 Jun 1997 16:03:56 +0200 (CEST) From: Philippe Charnier <charnier@xp11.frmug.org> To: doc@FreeBSD.org Subject: incorrect translation of <code></code> Message-ID: <199706281403.QAA04918@xp11.frmug.org>
index | next in thread | raw e-mail
Hello,
looking at the handbook ``Checking Printer Communications'' in printing.sgml
I saw that <code> is incorrectly translated to <hr><pre>. </code>
follows the same rule. This put a lot of `<hr>' in the final document.
(search for the word `suffice' in printing.sgml)
In /usr/share/sgml/transpec/linuxdoc-html.ts:
<rule>
<match>
<gi>CODE
<action>
<start>^<hr><pre>^</start>
<end>^</pre><hr>^</end>
</rule>
In /usr/bin/sgmlfmt:
while (<$infile>) {
# change `<' and `>' to `<' and `>' in <pre></pre>
if (/<pre>/.../<\/pre>/) {
s/</\</g;
s/\<([\/]*)pre>/<\1pre>/g;
s/>/\>/g;
s/<([\/]*)pre\>/<\1pre>/g;
}
--
------ ------
Philippe Charnier charnier@lirmm.fr (smtp)
charnier@xp11.frmug.org (uucp)
``a PC not running FreeBSD is like a venusian with no tentacles''
------------------------------------------------------------------------
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706281403.QAA04918>
