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

RE: Feature or support request? prevent tidy from stripping the s ingl e whitespace that follows an endtag

From: Ivo Pletikosic <ivo@benetech.org>
Date: Mon, 19 May 2003 12:29:42 -0700
Message-ID: <61F3DB5930AADF49A71965ECD6A62DD8051981@benexchng.benetech.org>
To: html-tidy@w3.org, "'Bjoern Hoehrmann'" <derhoermi@gmx.net>


Thank you for the reply. You are correct, this is the behavior of tidy with
HTML files. I am actually using tidy to clean up internal XML files that
have some HTML markups.

So it's not strictly HTML. The following:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
    	hello, <em>how</em> are you <strong>doing</strong> today. 

is output as:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
    <em>how</em>are you 

Is there a way to configure tidy to treat the XML tags as if it were HTML?
or is this spacing behavior limited to files identified and markedup as

I am using the Cygwin port of HTML tidy dated '1st February 2003', no
version number is specified so I'm unsure if it's with current sources.

Thank you,


-----Original Message-----
From: Bjoern Hoehrmann [mailto:derhoermi@gmx.net]
Sent: Saturday, May 17, 2003 4:46 AM
To: Ivo Pletikosic
Cc: html-tidy@w3.org
Subject: Re: Feature or support request? prevent tidy from stripping the
singl e whitespace that follows an endtag

* Ivo Pletikosic wrote:
>How do I prevent tidy from stripping the single whitespace that follows an
>For example, how do I prevent it from turning: 
>hello, <em>how</em> are you <strong>doing</strong> today. 
>hello, <em>how</em>are you <strong>doing</strong>today. 

I am unable to reproduce this behaivour. Using current sources I get

  hello, <em>how</em> are you <strong>doing</strong> today.

Do you have a complete test case?
Received on Monday, 19 May 2003 15:29:51 UTC

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