Re: [svgwg] Verbose SVG for improved human readability

Given that most people would edit or create SVGs in a program like Inkscape, Adobe Illustrator, CorelDraw etc, readability is a non-issue. If it is for you, I would suggest just writing a script to insert a new line after each segment of a path.
E.g.
```
<path 
   fill="orange"
   stroke="black"
   stroke-width="3" 
   d="M 100 100 
        L 300 100
        L 200 300
        z
        "
/>
```




The current d attribute in path is logical. You can follow along each step of the way and know what it is doing, especially if everything is along relative paths. Mixing absolute points in requires more of an understanding about where the path is located overall, which can make things difficult. If you are struggling, why not throw in a quick h5h-10h5v5v-10v5 (adjust size to appropriate value), when you're editing, so you get a big + when displaying the SVG. 

As to the javascript, if it expects an SVG element with AttributeNS, but your non standard SVG is served, it would need to instead loop through child nodes looking for values. So existing code would break.

-- 
GitHub Notification of comment by struddysit
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/340#issuecomment-326452277 using your GitHub account

Received on Friday, 1 September 2017 00:07:29 UTC