I created an svg file with Incskape. It contains a text element like this:
<text
[..]><tspan
[..]
style="font-style:normal;fill:#c913ff;fill-opacity:1">My Text</tspan></text>
I want to use git to keep track of my changes. Since git uses whole lines to look for changes I edit the svg file with an text editor to separate the style attributes from the text itself.
<text
[..]><tspan
[..]
style="font-style:normal;fill:#c913ff;fill-opacity:1">
My Text
</tspan></text>
This way I can change style and text in different commits without effecting the other.
Unfortunately Inkscape rewrites the svg file with each save and the text goes back into the same line with the style. :(
Is there a way to prevent Inkscape from doing this?
I know there might be a workaround by using some kind of variables for the style and change the values of the variables in another part oif the file. But I don't want to do that.