W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2003

RE: Suppressing the extra CR after an </tag>

From: Jason Manaigre <jmanaigre@iisd.ca>
Date: Fri, 7 Feb 2003 11:43:05 -0600
Message-ID: <7028701EB59F57489FBE7FD1519D97C005D96A@electron.iisd.ca>
To: <html-tidy@w3.org>

Hey Charles, I'm sure you hear allot of complaining, always remember, this program kicks some serious ass and I use it everyday. It's fantastic...

I think I'm the only developer who doesn't like indenting..<G>

So:

indent:auto
indent-spaces:0
indent-attributes:no

Works well, no indenting and still have the empty lines, perfect...


One question tho, when new version of tidy are built, is there ever an announcement that new entries in the config file are needed? Such as indent-attributes, hadn't seen that one before...


Jason E.J. Manaigre
International Institute for Sustainable Development
Winnipeg, Manitoba, Canada
Web Development | HTML God
Websites: http://www.iisd.org
Email: mailto:jmanaigre@iisd.ca | Phone: 1.204.958.7744 



-----Original Message-----
From: Charles Reitzel [mailto:creitzel@rcn.com] 
Sent: Thursday, February 06, 2003 4:34 PM
To: Jason Manaigre
Cc: html-tidy@w3.org
Subject: RE: Suppressing the extra CR after an </tag>


There are three settings for --indent: yes, no and auto.

For yes and no, Tidy does not print any empty lines.  For auto, it still 
prints an empty line between  many block elements, but not as many as it 
used to.  We complaints no matter what we do ... <grin>.

-i is equivalent to --ident yes

See http://tidy.sf.net/docs/quickref.html#indent

take it easy,
Charlie

At 03:49 PM 2/6/2003 -0600, Jason Manaigre wrote:
>Hi everyone, Alex I downloaded the latest tidy.exe for Windows and it was 
>doing just that, removing all CR after end tags... so you may want to try it...
>
>But i was wondering how to turn that back on? I don't mind the extra space 
>when editing large xhtml files...
>
>Any ideas?
>
>
>
>Jason E.J. Manaigre
>International Institute for Sustainable Development
>Winnipeg, Manitoba, Canada
>Web Development | HTML God
>Websites: <http://www.iisd.org/>http://www.iisd.org
>Email: <mailto:jmanaigre@iisd.ca>mailto:jmanaigre@iisd.ca | Phone: 
>1.204.958.7744
>-----Original Message-----
>From: Alex Grässer-CTK [mailto:alex@computicket.com]
>Sent: Wednesday, February 05, 2003 6:40 AM
>To: 'html-tidy@w3.org'
>Subject: Suppressing the extra CR after an </tag>
>
>Is there a way to suppress the extra Carriage return after and end tag?
>
>I.e.. Instead of
><first>
>   <second>some text</second>
>
>   <third>more text</third>
>
>   <fourth attrib="value" />
>
>   <fifth>Hello World</fifth>
></first>
>
>To pretty-print
><first>
>   <second>some text</second>
>   <third>more text</third>
>   <fourth attrib="value" />
>   <fifth>Hello World</fifth>
></first>
>
>This would make my XML files more readable I find.
Received on Friday, 7 February 2003 12:43:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:53 GMT