- run = insert(struct,level,currentlevel)
- run.append(StructuredTextParagraph(paragraph, indent=indent, level=currentlevel))
+ if not level:
+ struct.append(StructuredTextParagraph(paragraph, indent=indent, level=currentlevel))
+ else:
+ run = insert(struct,level,currentlevel)
+ run.append(StructuredTextParagraph(paragraph, indent=indent, level=currentlevel))