Is there a way to keep Python Toolboxes metadata formatted nicely for version control?
I use git to maintain my Python Toolboxes and when I make edits to the toolbox the metadata is updated and put all on one line. For example if I make a change to the tool alias I only want git to record the difference on that line.
Currently metadata looks like this
toolbox.tool.pyt.xml
<?xml version="1.0" encoding="UTF-8"?>
<metadata xml:lang="en"><Esri><CreaDate>20180824</CreaDate><CreaTime>10320700</CreaTime><ArcGISFormat>1.0</ArcGISFormat><SyncOnce>TRUE</SyncOnce><ModDate>20180828</ModDate><ModTime>111340</ModTime></Esri><toolbox name="partition" alias="partition"><arcToolboxHelpPath>c:\program files (x86)\arcgis\desktop10.3\Help\gp</arcToolboxHelpPath><toolsets/></toolbox><dataIdInfo><idCitation><resTitle>partition</resTitle></idCitation></dataIdInfo><distInfo><distributor><distorFormat><formatName>ArcToolbox Toolbox</formatName></distorFormat></distributor></distInfo></metadata>
I want this
toolbox.tool.pyt.xml
<?xml version="1.0" encoding="UTF-8"?>
<metadata xml:lang="en">
<Esri>
<CreaDate>20180824</CreaDate>
<CreaTime>10320700</CreaTime>
<ArcGISFormat>1.0</ArcGISFormat>
<SyncOnce>TRUE</SyncOnce>
<ModDate>20180828</ModDate>
<ModTime>111340</ModTime>
</Esri>
<toolbox name="partition" alias="partition">
<arcToolboxHelpPath>c:\program files (x86)\arcgis\desktop10.3\Help\gp</arcToolboxHelpPath>
<toolsets/>
</toolbox>
<dataIdInfo>
<idCitation>
<resTitle>partition</resTitle>
</idCitation>
</dataIdInfo>
<distInfo>
<distributor>
<distorFormat>
<formatName>ArcToolbox Toolbox</formatName>
</distorFormat>
</distributor>
</distInfo>
</metadata>