Commits

Luke Plant committed b2c5067

Fixed preview

  • Participants
  • Parent commits 80f3895

Comments (0)

Files changed (1)

File semanticeditor/utils/presentation.py

     return _html_extract(root)
 
 def _create_preview(node, structure, known_nodes):
-    for n in node.getchildren():
+    children = node.getchildren()
+    if children and children[0].tag == 'body':
+        children = children[0].getchildren()
+    for n in children:
         if n.tag == 'div':
             _create_preview(n, structure, known_nodes)
         else: