Hi, all!
I use inkscape version 0.48.1 r (May 14 2011). Yesterday i saw a strange behaviour of a text element. Inkscape show me the text from the file:
<?xml version="1.0" standalone="yes"?> <svg width="210mm" height="297mm" version="1.1" xmlns="http://www.w3.org/2000/svg">
<text x="72mm" y="38mm" dx="0mm 2mm 4mm 2mm 4mm 2mm 2mm 2mm"> <title>some title</title> 12072011 </text>
</svg>
as "1 20 72011", instead of "12 07 2011". If i delete the title element or comment it, the text element show me as needed.
Is this a bug or may be i do anything wrong?
Thanks.
On Mon, 2011-07-18 at 02:25 +0400, Oleg wrote:
Hi, all!
I use inkscape version 0.48.1 r (May 14 2011). Yesterday i saw a strange behaviour of a text element. Inkscape show me the text from the file:
<?xml version="1.0" standalone="yes"?>
<svg width="210mm" height="297mm" version="1.1" xmlns="http://www.w3.org/2000/svg">
<text x="72mm" y="38mm" dx="0mm 2mm 4mm 2mm 4mm 2mm 2mm 2mm"> <title>some title</title> 12072011 </text>
</svg>
as "1 20 72011", instead of "12 07 2011". If i delete the title element or comment it, the text element show me as needed.
Is this a bug or may be i do anything wrong?
I believe adding the title element like you have has introduced an extra white space which is using up one of the dx values. Try <text...><title>...</title> (no space/new line). I have similar problems sometimes with DocBook. The XML specification of how white space is treated is probably the root cause.
Tav
On Mon, Jul 18, 2011 at 07:44:04AM +0200, Tavmjong Bah wrote:
On Mon, 2011-07-18 at 02:25 +0400, Oleg wrote:
Hi, all!
I use inkscape version 0.48.1 r (May 14 2011). Yesterday i saw a strange behaviour of a text element. Inkscape show me the text from the file:
<?xml version="1.0" standalone="yes"?>
<svg width="210mm" height="297mm" version="1.1" xmlns="http://www.w3.org/2000/svg">
<text x="72mm" y="38mm" dx="0mm 2mm 4mm 2mm 4mm 2mm 2mm 2mm"> <title>some title</title> 12072011 </text>
</svg>
as "1 20 72011", instead of "12 07 2011". If i delete the title element or comment it, the text element show me as needed.
Is this a bug or may be i do anything wrong?
I believe adding the title element like you have has introduced an extra white space which is using up one of the dx values. Try <text...><title>...</title> (no space/new line). I have similar problems sometimes with DocBook. The XML specification of how white space is treated is probably the root cause.
Tav
Thank you for your reply. This doesn't help :-(.
participants (2)
-
Oleg
-
Tavmjong Bah