From 0dc56494f6e714e12e9862224236498992b531ce Mon Sep 17 00:00:00 2001 From: David Rouquet <david.rouquet@tetras-libre.fr> Date: Sat, 13 Jun 2020 12:13:06 +0200 Subject: [PATCH] UNL content now in CDATA for readability Closes #5 --- scripts/unlizeXml.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/unlizeXml.py b/scripts/unlizeXml.py index c05a361..e3f27f7 100755 --- a/scripts/unlizeXml.py +++ b/scripts/unlizeXml.py @@ -57,7 +57,7 @@ def nestedBody2Str(b): def addSubElement(parent, tag, text): sub = etree.SubElement(parent, tag) - sub.text = text + sub.text = etree.CDATA(text) return sub @@ -123,6 +123,8 @@ def unl2dot(text, path): type=click.Path(dir_okay=False), default='unl2rdf-app-1.0-SNAPSHOT-jar-with-dependencies.jar', help='Path of the unltools jar') + + def unlizeXml(input, output, lang, dry_run, svg, unltools_path): parser = etree.XMLParser(remove_comments=True) -- GitLab