Skip to content
Snippets Groups Projects
Verified Commit daf935f8 authored by David Beniamine's avatar David Beniamine
Browse files

Rename node from svg to dot

parent 74eca2e1
No related branches found
No related tags found
No related merge requests found
Pipeline #189 passed
...@@ -130,7 +130,7 @@ def xml2unl(input, output, lang, dry_run, svg, unltools_path): ...@@ -130,7 +130,7 @@ def xml2unl(input, output, lang, dry_run, svg, unltools_path):
node.text = "" node.text = ""
unl = addSubElement(node, 'unl', unlize(nestedBody2Str(node), lang, dry_run)) unl = addSubElement(node, 'unl', unlize(nestedBody2Str(node), lang, dry_run))
if(svg and not dry_run): if(svg and not dry_run):
addSubElement(node, 'dot', unl2dot(unl.text, unltools_path)) addSubElement(node, 'svg', unl2dot(unl.text, unltools_path))
with open(output, 'w') as out: with open(output, 'w') as out:
out.write(etree.tostring(doc, pretty_print=True).decode('utf-8')) out.write(etree.tostring(doc, pretty_print=True).decode('utf-8'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment