Incorrect handling of pre tags in latest Windows and OS/2 versions

Hello.

It has been brought to my attention that there is a bug in the way the
text inside pre tags is handled if there are other tags included. Only
the first line after the opening pre tag is indented correctly, for all
following ones inside the pre tags any leading spaces are removed and
the code begins in the first column.

E.g.:

<p>The macros</p>
<pre>
        <b><tt>NANSCF</tt></b>
        <b><tt>NANSC</tt></b>
        <b><tt>NANSCL</tt></b>
        <b><tt>NANSIF</tt></b>
        <b><tt>NANSI</tt></b>
        <b><tt>NANSIL</tt></b>
</pre>

becomes:

  <p>The macros</p>  
  <pre>  
        <b><tt>NANSCF</tt></b>  
<b><tt>NANSC</tt></b>  
<b><tt>NANSCL</tt></b>  
<b><tt>NANSIF</tt></b>  
<b><tt>NANSI</tt></b>  
<b><tt>NANSIL</tt></b>  
</pre>

However, if I remove the superfluous bold and teletype tags, it works
fine.

Christian Hennecke

Received on Friday, 11 April 2003 11:18:25 UTC