From e3beb7917eae2e47eb5e6cdc64615a1c51533d05 Mon Sep 17 00:00:00 2001
From: David Rouquet <david.rouquet@tetras-libre.fr>
Date: Wed, 17 Jun 2020 12:58:37 +0200
Subject: [PATCH] Remone so called xmldata from cells

---
 scripts/unlizeToNotebook.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/scripts/unlizeToNotebook.py b/scripts/unlizeToNotebook.py
index bd49c92..16b0f2f 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}
 \"\"\"
-- 
GitLab