diff --git a/scripts/unlizeToNotebook.py b/scripts/unlizeToNotebook.py index bd49c921c89528b744d506824d01f9884d6c45f1..16b0f2fd64a74a73377471b49dd27fb6e6d9c868 100755 --- a/scripts/unlizeToNotebook.py +++ b/scripts/unlizeToNotebook.py @@ -30,9 +30,9 @@ def unlizeXmlNb(input, output, template, lang, dry_run): if node.text: # Add unl = unlize(nestedBody2Str(node), lang, dry_run) - addCell(nb, node.text, unl) + addCell(nb, unl) else: - addCell(nb, getText(node, 'orig'), getText(node, 'unl')) + addCell(nb, getText(node, 'unl')) with open(output, 'w') as f: nbf.write(nb, f) @@ -45,11 +45,8 @@ def getText(node, tag): return '' -def addCell(nb, xml, unl): +def addCell(nb, unl): code = """ -xmldata = \"\"\" -{xml} -\"\"\" unldata = \"\"\" {unl} \"\"\"