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: Holger Klawitter <lists@xxxxxxxxxxxx>
Date: Mon, 31 Mar 2003 10:25:34 +0200
> I'm outputting HTML, of course (well, -tsgml).  I've tried various
> ways of defining the nbsp function.  I tried each of the lines
> below separately, uncommenting exactly one each try.
>
>     (define (nbsp)
>       ;; (literal "&#160;")
>       ;; (make formatting-instruction data: "&#160;")
>       ;; (make formatting-instruction data: "&nbsp;")
>       ;; (literal "\no-break-space;")
>       ;; (literal "\U-00A0;")
>       ;; (literal "&#38;#160;") ;; A
>       (make formatting-instruction data: (string-append "&" "#160;"))
>       )

There is yet another way to define such a thing :-)
	(make entity-ref name: "nbsp")

> no magic Jade option -do-not-translate-nbsp-to-space, I suppose. 

There is one, however this blocks *all* SDATA entity refs from being 
translated:

(declare-characteristic preserve-sdata?
  "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
  #t)

With kind regards / mit freundlichem Gruß
	Holger Klawitter
-- 
Holger Klawitter                          http://www.klawitter.de
lists@xxxxxxxxxxxx

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

Current Thread