[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 &lt;hr&gt;<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>^&lt;hr&gt;&lt;pre&gt;^</start>
  <end>^&lt;/pre&gt;&lt;hr&gt;^</end>
</rule>


In /usr/bin/sgmlfmt:

    while (<$infile>) {
        # change `<' and `>' to `&lt;' and `&gt;' in <pre></pre>
        if (/<pre>/.../<\/pre>/) {
            s/</\&lt;/g;
            s/\&lt;([\/]*)pre>/<\1pre>/g;
            s/>/\&gt;/g;
            s/<([\/]*)pre\&gt;/<\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