This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: How to remove surplus spaces.
- From: Jirka Kosek <jirka at kosek dot cz>
- To: "docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 29 Mar 2002 11:57:54 +0100
- Subject: Re: DOCBOOK-APPS: How to remove surplus spaces.
- References: <20020329011953.GA80477@genius.tao.org.uk>
Josef Karthauser wrote:
>
> Is there an easy way to remove surplus spaces in things like:
>
> <quote> something </quote>?
>
> I'd like to have the stylesheet automatically remove the leading and
> trailing white space.
Stylesheet can do this, but it isn't as easy as you can expect (you can
play with normalize-spaces() function if you want). And in fact
stylesheet shouldn't remove these spaces as they are significant, you
should change your markup to correct form:
<quote>something</quote>
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz