From 51245491e1a2dce0581011360a831bc322f8ddee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sat, 7 May 2022 23:33:04 +0200 Subject: [PATCH] Track simplified code block structure. --- _scripts/generate.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/_scripts/generate.py b/_scripts/generate.py index 7635953..f5f328d 100644 --- a/_scripts/generate.py +++ b/_scripts/generate.py @@ -154,15 +154,7 @@ def render_list_item(element, acc): def render_code_block(element, acc): acc.append('
')
-    for line in element.lines:
-        if isinstance(line, org_rw.org_rw.Text):
-            for tok in line.contents:
-                if not isinstance(tok, org_rw.org_rw.MarkerToken):
-                    acc.append(tok)
-        elif isinstance(line, dom.CodeBlock):
-            print(line.lines)
-        else:
-            print(type(line))
+    acc.append(element.lines)
     acc.append('
')