W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2004

Re: User question: line breaks

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 14 May 2004 10:05:54 +0200
To: Susan Lesch <lesch@w3.org>
Cc: html-tidy@w3.org
Message-ID: <40ba7a37.919001434@smtp.bjoern.hoehrmann.de>

* Susan Lesch wrote:
>>and want Tidy to emit e.g.
>>   <div>
>>   <p>...</p>
>>   <p>...</p>
>>   <p>...</p>
>>   </div>

I've restored what Tidy did in March 2003 and it would not emit the
markup above, but there are some flaws... `tidy --vertical-space yes
-wrap 0` for http://www.w3.org would give



  <li><a href="/2002/ws/" class="navlink">Web Services</a>
  <h2 class="newsHeading"><a name="news" id="news">News</a>

the newlines preceding end tags are not really desireable, so upgrading
Tidy to use this incarnation of `--vertical-space yes` might not be a
solution to your problem. I'll see what I can do about this and drop you
a line.

>In the meantime, this turned out to do what I needed:
>indent: auto
>indent-spaces: 0
>except that it wraps comments, so for example:
>    </div>
>    <!-- comment -->
>    </div><!-- comment -->

Ok, I've filed a bug report for this, <http://tidy.sf.net/bug/953800>.

Does `--indent-spaces 0` actually disable indentation in your version?
As far as I can see, you would still get the default 2 space
indentation, even though `--indent-spaces 1` seems to work...

Received on Friday, 14 May 2004 04:07:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC