Commit b273c0cf authored by Shane Hathaway's avatar Shane Hathaway

Corrected handling of blank documents

parent e7b8e43e
......@@ -113,7 +113,7 @@ def StructuredText(paragraphs, paragraph_delimiter=re.compile('\n\s*\n')):
paragraph_delimiter.split(expandtabs('\n\n'+paragraphs+'\n\n'))
)
if not paragraphs: return []
if not paragraphs: return StructuredTextDocument()
ind = [] # structure based on indention levels
for paragraph in paragraphs:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment