[Solved] Overload on Whitespace

Post questions on how to use or achieve an effect in Inkscape.
User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

[Solved] Overload on Whitespace

Postby kstingel » Fri Feb 19, 2016 5:32 pm

Recently when I opened Inkscape, it reported that my preferences file was corrupt and settings were reverting to defaults and would not be saved for the session.

I closed out of the session and went an renamed my previous preferences file (so I could refer back to it later), then reopened Inkscape

I new preferences file was generated (as expected) however, now when files are saved, each name->value pair is being written on a line of it's own

Code: Select all

<sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="0"
     inkscape:zoom="4"
     inkscape:cx="165.80846"
     inkscape:cy="375"
     inkscape:document-units="px"
     inkscape:current-layer="layer5"
     showgrid="true"
     showguides="true"
     inkscape:window-width="1920"
     inkscape:window-height="996"
     inkscape:window-x="-8"
     inkscape:window-y="-8"
     inkscape:window-maximized="1"
     guidetolerance="10"
     gridtolerance="10"
     inkscape:showpageshadow="false">


is there a setting somewhere that I haven't seen to make it save inline instead?

more like this :

Code: Select all

<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="0" inkscape:zoom="4" inkscape:cx="165.80846" inkscape:cy="375" inkscape:document-units="px" inkscape:current-layer="layer5" showgrid="true" showguides="true" inkscape:window-width="1920" inkscape:window-height="996" inkscape:window-x="-8" inkscape:window-y="-8" inkscape:window-maximized="1" guidetolerance="10" gridtolerance="10" inkscape:showpageshadow="false">
Last edited by kstingel on Sat Feb 20, 2016 11:33 am, edited 1 time in total.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Overload on Whitespace

Postby hulf2012 » Sat Feb 20, 2016 1:43 am

Hello:
Try this: Go to Inkscape preferences and then Input>Output: see if changing something there modify the SVG output.

On the other hand, It had happened to me that when opening svg files from different sources, Inkscape changes the space bar, tabs and/or carriage returns. But I don't know how to describe it more.

Sometimes, even changing the style of an object a little, the style attribute is filled of more code than expected... but this another talk, I guess.

Since the config files are just text files, you could share the content of your old or new configuration files to see if there is a diference. In which OS you are?... because in Linux you could use a "diff" command to compare the 2 files (I have never tried :roll: ).

Other way: Save as optimized SVG. Last resource: try with a good text editor.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

Re: Overload on Whitespace

Postby kstingel » Sat Feb 20, 2016 11:32 am

thanks hulf2012

Settings -> Input/Output -> SVG Output -> XML formatting ... Inline attributes


Return to “Help with using Inkscape”