RE: (dsssl) Jade keeps translating non-breaking space to a regular space in HTML

Subject: RE: (dsssl) Jade keeps translating non-breaking space to a regular space in HTML
From: David.Pawson@xxxxxxxxxxx
Date: Mon, 31 Mar 2003 10:40:44 +0100
Tim said:
>     (define (nbsp)
>       ;; (literal " ")
>       ;; (make formatting-instruction data: " ")
>       ;; (make formatting-instruction data: " ")
>       ;; (literal "\no-break-space;")
>       ;; (literal "\U-00A0;")
>       ;; (literal " ") ;; A
>       (make formatting-instruction data: (string-append "&" "#160;"))
>       )
> 
> In each case but the last two, the resulting file, when viewed via the
> "od" command or in Emacs, has a regular space there, not a
> non-breaking space.  (For the third to work, I defined an entity nbsp
> via
>     <!ENTITY nbsp "\U-00A0;" >
> )
> 
> Except for "A": it produced &#38;#160;, presumably because it saw &#38
> (ampersand) was special and decided to escape it by keeping it an
> entity.
> 
> That last one, though, worked.

This sounds like an encoding problem?
Perhaps specify that the output should be utf-8?

HTH DaveP.



*** snip here ***


- 

NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 
system.

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk 

 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist

Current Thread