W3C home > Mailing lists > Public > www-svg@w3.org > July 2008

Re: Text alignment with xml:space=

From: Bert Passek <nucleareffe@gmx.de>
Date: Sat, 5 Jul 2008 06:08:28 +0000 (UTC)
To: www-svg@w3.org
Message-ID: <loom.20080705T060349-374@post.gmane.org>

Helder Magalhães <helder.magalhaes <at> gmail.com> writes:

> The "xml:space" property controls the XML processor's white space
> handling [1]. Setting it to "preserve" leads to all whitespace being
> kept for processing. That's exactly why your text is being
> repositioned - it contains leading (and trailing) white space ! 
> To achieve the (apparently) desired effect, one should trim remove all
> undesired whitespace:


yes you are right. It's so simple. I was using batik to 
generate the svg. I'm sure the text of the text node 
doesn't contain any leading spaces. So somehow i
have to tell batik to write the text without 
formatting spaces e.g. I will have
a look.


Received on Saturday, 5 July 2008 06:10:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:19 UTC