Skip to content
Snippets Groups Projects
Commit 0dc56494 authored by David Rouquet's avatar David Rouquet
Browse files

UNL content now in CDATA for readability

Closes #5
parent 3eb55d9b
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ def nestedBody2Str(b): ...@@ -57,7 +57,7 @@ def nestedBody2Str(b):
def addSubElement(parent, tag, text): def addSubElement(parent, tag, text):
sub = etree.SubElement(parent, tag) sub = etree.SubElement(parent, tag)
sub.text = text sub.text = etree.CDATA(text)
return sub return sub
...@@ -123,6 +123,8 @@ def unl2dot(text, path): ...@@ -123,6 +123,8 @@ def unl2dot(text, path):
type=click.Path(dir_okay=False), type=click.Path(dir_okay=False),
default='unl2rdf-app-1.0-SNAPSHOT-jar-with-dependencies.jar', default='unl2rdf-app-1.0-SNAPSHOT-jar-with-dependencies.jar',
help='Path of the unltools jar') help='Path of the unltools jar')
def unlizeXml(input, output, lang, dry_run, svg, unltools_path): def unlizeXml(input, output, lang, dry_run, svg, unltools_path):
parser = etree.XMLParser(remove_comments=True) parser = etree.XMLParser(remove_comments=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment