[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-doc
Subject: incorrect translation of <code></code>
From: Philippe Charnier <charnier () xp11 ! frmug ! org>
Date: 1997-06-28 14:03:56
[Download RAW message or body]
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''
------------------------------------------------------------------------
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic