Hi John,

The viewer use XML SET OPTIONS (ref; XML indentation;XML with indentation).
You can do the same before exporting.

v i n c e n t    d e    l a c h a u x
----------------------------------------
Bee green - keep it on the screen

> On 2 Feb 2017, at 23:57, truegold <[email protected]> wrote:
>
> Hi All,
>
> 4D v15.2 (OSX)
>
> I am creating/using svg. Last night, unless I’m completely mental, I thought 
> the svg code when viewed with SVGTool_SHOW_IN_VIEWER was showing the “source” 
> as unjumbled and easy to read, lines with CR endings, etc.
>
> Looked kind of like (I had to use Sublime to view nicely):
>
> /* —————————— ————— —
> <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
> <svg xmlns="http://www.w3.org/2000/svg"; height="592px" id="chart_" 
> preserveAspectRatio="none" viewBox="0 0 592 592" width="592px">
>
>  <title>Wheel</title>
>
>  <desc>Uni_Small</desc>
>
>  <metadata xmlns="http://www.4D.com/4DSVG";>
>    <generator>4D SVG Component version 15.0 ©2008-2017 4D SAS.</generator>
>    <about>4D SVG is the quintessential vector drawing tool for 4D 
> developers.</about>
>    <generation date="2017-02-02Z" system="Mac OSX 10.9.5" time="PT14H39M3S"/>
>  </metadata>
>
>  <defs id="4D"/>
>
>  <circle cx="296" cy="296" fill="white" id="c01" r="296" stroke="black" 
> stroke-width="1"/>
>
>  <circle cx="296" cy="296" fill="white" id="c02" r="260.48" stroke="black" 
> stroke-width="1"/>
>
>  <circle cx="296" cy="296" fill="white" id="c03" r="118.4" stroke="black" 
> stroke-width="1"/>
>
>  <circle cx="296" cy="296" fill="white" id="c04" r="88.8" stroke="black" 
> stroke-width="1"/>
>
> </svg>
> ————————————————— */
>
> Today I am getting this (which looks a lot like what is returned by 
> SVG_Export_to_XML ($domSvg) OR DOM EXPORT TO VAR($domSvg;_t_)):
>
> /* —————————— ————— —
> <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><svg 
> xmlns="http://www.w3.org/2000/svg"; height="592px" id="chart_" 
> preserveAspectRatio="none" viewBox="0 0 592 592" 
> width="592px"><title>Wheel</title><desc>Uni_Small</desc><metadata 
> xmlns="http://www.4D.com/4DSVG";><generator>4D SVG Component version 15.0 
> ©2008-2017 4D SAS.</generator><about>4D SVG is the quintessential vector 
> drawing tool for 4D developers.</about><generation date="2017-02-02Z" 
> system="Mac OSX 10.9.5" time="PT14H44M35S"/></metadata><defs id="4D"/><circle 
> cx="296" cy="296" fill="white" id="c01" r="296" stroke="black" 
> stroke-width="1"/><circle cx="296" cy="296" fill="white" id="c02" r="260.48" 
> stroke="black" stroke-width="1"/><circle cx="296" cy="296" fill="white" 
> id="c03" r="118.4" stroke="black" stroke-width="1"/><circle cx="296" cy="296" 
> fill="white" id="c04" r="88.8" stroke="black" stroke-width="1"/></svg>
> ————————————————— */
>
> Is there any svg programmable property I am missing (can’t locate in docs) 
> that would insure that the code is in a “maximum” nicely formatted view (like 
> the Sublime view)?
>
> I want to be able to dynamically easily see each change I make in the svg
>
> Thanks,
> John...
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************



Vincent de Lachaux
Développeur 4D Senior

4D SAS
66 route de Sartrouville
Parc Les Erables - Batiment 4
78230 Le Pecq
France

Standard : +33 1 30 53 92 00
Email :    [email protected]
Web :      www.4D.com

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to