W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

Re: How do I get "&nbsp" to stay?

From: Brent S. Hall <bshall@home.com>
Date: Thu, 27 Jul 2000 15:18:25 -0400
Message-Id: <>
To: html-tidy@w3.org
I have found that the &nbsp; entity will be retained by Tidy if 
"quote-nbsp" is set to "yes" and "char-encoding" is set to "ascii". If the 
"char-encoding" is set to "latin1", then Tidy will replace &nbsp; (as well 
as entities like &copy; or &Aacute;) with the actual character.

Brent Hall

At 02:29 PM 7/27/2000, you wrote:
>Tidy seems to like to change my "&nbsp" bits to "&#160".. Firstly, is this
>"better"? I mean, I've always used "&nbsp", but is it non-standard or
>somesuch? If "&nbsp" is actually "bad to use", then I thank Tidy for
>enlightening me :).
>Also, supposing for a moment that "&nbsp" is ok to use, how do I get Tidy to
>leave those in there? Looking over the docs
>(http://www.w3.org/People/Raggett/tidy/#help), the most relevant parameter
>to my issue seems to be "quote-nbsp". The docs describe it as such:
>         "If set to yes, this causes non-breaking space characters to be
>         written out as entities, rather than as the Unicode character
>         value 160 (decimal). The default is yes."
>However, I tried setting the option both ways fro testing. When set to "yes"
>(or by omitting the option, which sets it to a default of "yes"), then Tidy
>changes my "&nbsp" to "&#160". On the other hand, when set to "no", Tidy
>just changes my "&nbsp" to what *look* like spaces (though I suspect that
>they're not really character 32, a traditional space).
>So, in summary, are "&nbsp" tags to be avoided? And, if not, how can I get
>Tidy to leave mine alone? ;)
>Alex Bischoff                                              3812078 on ICQ
>  -------------------------------------------------------------------------
>  export-a-crypto-system-sig RSA-2-lines-PERL
>  print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
>  )]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
>  -------------------------------------------------------------------------
>  Run a Free Program and You Could Win $1000 --> http://www.distributed.net/
Received on Thursday, 27 July 2000 15:18:45 UTC

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