You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Lars Eirik Rønning <la...@gmail.com> on 2008/11/10 12:31:24 UTC

text preserve

Hi.Is there an easy way to allow batik svg files to preserve spacing when
creating tspan or textnodes?
Currently my string looks like this :"
     indented text";
all empty spaces seem to be ignored when i output this thourgh the
pdftranscoder..
I assume this is because i have not declared that i need it to preserve
whitespace?

Hope someone can help.

Lars

Re: text preserve

Posted by Helder Magalhães <he...@gmail.com>.
> but my problem is i do not know how to add the xml space =preserve..
> what is the code for doing this?

Oh, I now noticed you've missed the "xml" prefix Thomas has caught in
another thread [1]. I believe that answers this same question also...

Regards,

 Helder Magalhães

[1] http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/200811.mbox/%3COFB8E50020.8F5B230D-ON852574FE.0039607E-852574FE.0039B9B7@knotes.kodak.com%3E

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: text preserve

Posted by Lars Eirik Rønning <la...@gmail.com>.
but my problem is i do not know how to add the xml space =preserve..what is
the code for doing this?

On Mon, Nov 10, 2008 at 5:37 PM, Helder Magalhães <
helder.magalhaes@gmail.com> wrote:

> > I assume this is because i have not declared that i need it to preserve
> > whitespace?
>
> Yes, I'd say so, but of course I suggest always perform a simple test
> first. Take a look at a related thread [1].
>
> > Hope someone can help.
> > Lars
>
> Hope this helps,
>
>  Helder Magalhães
>
>
>
> [1] http://www.nabble.com/tspans-fail-to-line-up-td8148518.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>

Re: text preserve

Posted by Helder Magalhães <he...@gmail.com>.
> I assume this is because i have not declared that i need it to preserve
> whitespace?

Yes, I'd say so, but of course I suggest always perform a simple test
first. Take a look at a related thread [1].

> Hope someone can help.
> Lars

Hope this helps,

 Helder Magalhães



[1] http://www.nabble.com/tspans-fail-to-line-up-td8148518.html

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org