Re: User question: line breaks

I appreciate your time, Bjoern and Cory. Thank you.

Bjoern Hoehrmann wrote:

>You mean, you have e.g.
>
>   <div>
>   <p>...
>   <p>...
>   <p>...
>   </div>
>
>and want Tidy to emit e.g.
>
>   <div>
>   <p>...</p>
>
>   <p>...</p>
>
>   <p>...</p>
>   </div>

Yes,

I am accustomed to the "Tidy's default style" (that's what 
htmldoc/Overview.html calls it I think).

>without indentation? Hmm... It's (close to) what old versions of Tidy
>did, we changed it for some reason and later introduced an experimental
>boolean config option 'vertical-space'... A March 2003 build would
>indeed generate the above using `--vertical-space yes` but current
>builds do not... I'll have a look at it.

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 -->

becomes:

    </div><!-- comment -->

-- 
Susan Lesch           http://www.w3.org/People/Lesch/
mailto:lesch@w3.org               tel:+1.858.483.4819
World Wide Web Consortium (W3C)    http://www.w3.org/

Received on Friday, 14 May 2004 03:28:27 UTC