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:

Hi,

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.

Thanks.

Bye
Received on Saturday, 5 July 2008 06:10:33 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:39 GMT