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

Re: html-tidy bug report

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 16 Apr 2008 14:43:50 +0200
To: "Mukesh Choudhary" <mukesh.choudhary@aptaracorp.com>
Cc: <html-tidy@w3.org>
Message-ID: <d1tb04hc0avql6uv9fo6rtj8b6iqkmr1b0@hive.bjoern.hoehrmann.de>

* Mukesh Choudhary wrote:
>(Bug) Multiples white space within tag is replaced with single white space.
>ie.  <p>This is            paragraph text</p>   is converted to <p>This is paragraph text</p>
>
>I have tried different version with settings like output-xhtml:1 , output-xml:1
>
>I want to retain multiple white space. Is it a bug in HTML-Tidy or there is some different settings to retain spaces.

This is by design and there is no option to turn it off. If you want to
have the white space preserved, you should use e.g. the <pre> element.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 16 April 2008 12:45:07 GMT

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