When saving, double quotes in svg:script are turned to "
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
On Inkscape 0.46, the svg file also holds a text/ecmascript. It is visible in the XML editor and correctly shows like this:
function refreshInfo() {
svgdoc.
}
When I save the file and reopen it inanother editor I get this :
function refreshInfo() {
svgdoc.
}
This doesn't seem to occur with the single quote and could be avoided by using them instead, but remember that on many occurences it is necessary to mix the two quote styles.
This leads to a more general problem:
Inkscape currently does not preserve the original text that lies between the <script></script> tags. For example the <![CDATA[ ... ]]> tag is removed. If I add it manually inside the XML editor, it finally lands as <![CDATA[ ... ]]> on an external editor.
That means a lot of complications as I want to use Inkscape for graphic creation and another code editor for scripting animations. If there are several script snippets disseminated into the document we have a problem. It is urgent to fix this bug, but it should be an easy one I believe.
Thanks for your very worthy efforts.
Script not preserved (continued).
Large scripts better be included with an attribute xlink:href= "myscript. js". Sure!
Alas Inkscape eats away the xlink: part of the attribute name when it is saved. Each time I return to the external editor (HomeSite 5.5) I have to do the correction.