W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 1999

Unintentional newlines inserted by tidy?

From: Steinar Kjærnsrød <steinar@infostream.no>
Date: Thu, 2 Dec 1999 00:25:53 +0100 (MET)
To: html-tidy@w3.org
Message-ID: <Pine.GSO.4.05.9912020016440.22847-100000@tycho.oslo.infostream.no>
I run tidy using this config file:

wrap: 72
indent: yes
indent-attributes: no
add-xml-pi: no
char-encoding: latin1
break-before-br: yes
new-blocklevel-tags: restype

Everything is fine. Then I change the indent option to "auto", and the
indentation behaviour is as  anticipated. However, one newline
is inserted after a many end-tags. For instance, a long list of option 
elements looks like this

            <option value="InfoProject demousers">
              InfoProject demousers
            <option value="InfoStream AS">
              InfoStream AS

with indent set to "yes", and with one extra newline between each
option element with indent set to "auto". This goes for other elements as

I'm using the 30nov version of tidy on Linux.

Am I missing something here, or is this a strange misfeature?

Steinar Kjærnsrød <steinar@infostream.no>
InfoStream AS
Received on Wednesday, 1 December 1999 18:26:02 UTC

This archive was generated by hypermail 2.3.1 : Friday, 13 July 2018 08:58:58 UTC