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

Remone so called xmldata from cells

parent 21983bfc
Branches
No related tags found
No related merge requests found
Pipeline #204 passed
...@@ -30,9 +30,9 @@ def unlizeXmlNb(input, output, template, lang, dry_run): ...@@ -30,9 +30,9 @@ def unlizeXmlNb(input, output, template, lang, dry_run):
if node.text: if node.text:
# Add # Add
unl = unlize(nestedBody2Str(node), lang, dry_run) unl = unlize(nestedBody2Str(node), lang, dry_run)
addCell(nb, node.text, unl) addCell(nb, unl)
else: else:
addCell(nb, getText(node, 'orig'), getText(node, 'unl')) addCell(nb, getText(node, 'unl'))
with open(output, 'w') as f: with open(output, 'w') as f:
nbf.write(nb, f) nbf.write(nb, f)
...@@ -45,11 +45,8 @@ def getText(node, tag): ...@@ -45,11 +45,8 @@ def getText(node, tag):
return '' return ''
def addCell(nb, xml, unl): def addCell(nb, unl):
code = """ code = """
xmldata = \"\"\"
{xml}
\"\"\"
unldata = \"\"\" unldata = \"\"\"
{unl} {unl}
\"\"\" \"\"\"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment