This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6136 - space characters in SVG
Summary: space characters in SVG
Status: RESOLVED REMIND
Alias: None
Product: Amaya
Classification: Unclassified
Component: SVG (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: fred.wang
QA Contact: fred.wang
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-04 19:25 UTC by Vladislav Ivanishtshev
Modified: 2009-04-29 08:03 UTC (History)
6 users (show)

See Also:


Attachments
tspan in text creates addiotional spaces (88.39 KB, image/png)
2009-03-10 10:50 UTC, Vladislav Ivanishtshev
Details

Description Vladislav Ivanishtshev 2008-10-04 19:25:08 UTC
Usually svg code rows are long. Thus the line is usually automatically broken and additional space characters are added. Unfortunately this characters are then displayed in browsers.
As a solution I use 1000 characters (max. num.) in a row, but it is a temporary solution. Somehow additional spaces should be omitted or <text>Text</text> should not be broken as:
<text>
  Text
</text>
Comment 1 Vladislav Ivanishtshev 2009-03-10 10:50:44 UTC
Created attachment 661 [details]
tspan in text creates addiotional spaces

Take a look at this example:
    <text textLength="115" x="279.00" y="244.50">C<tspan baseline-shift="sub" font-size="75%">21</tspan>
H<tspan baseline-shift="sub" font-size="75%">27</tspan>
N<tspan baseline-shift="sub" font-size="75%">2</tspan>
<tspan baseline-shift="super" font-size="75%">-</tspan>
 MgBr<tspan baseline-shift="super" font-size="75%">+</tspan>
    </text>

There are still additional spaces :-(
Comment 2 Vladislav Ivanishtshev 2009-04-29 08:03:19 UTC
Please pay attention. The bug is still exists when <tspan> and <text> are used.