#369 Incorrect indent of pre inline children

closed-fixed
5
2003-04-13
2003-04-11
No

To: "html-tidy@w3.org" <html-tidy@w3.org>
Subject: Incorrect handling of pre tags in latest Windows
and OS/2 versions
From: "Christian Hennecke" <christian.hennecke@ruhr-
uni-bochum.de>
Date: Fri, 11 Apr 2003 17:12:51 +0200 (CEST)
X-Archived-At:
http://www.w3.org/mid/200304111513.h3BFD0si005670
@tux.w3.org

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

Discussion

  • Björn Höhrmann

    • assigned_to: nobody --> hoehrmann
    • status: open --> closed-fixed
     
  • Björn Höhrmann

    Logged In: YES
    user_id=188003

    Fixed in CVS.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks