Skip to content

Commit

Permalink
Fixed parser so cli tool works
Browse files Browse the repository at this point in the history
  • Loading branch information
Harrison-M committed Dec 6, 2012
1 parent 021f424 commit 60936cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indentparser.py
Expand Up @@ -62,7 +62,7 @@ def parse(self, iterable):
output += "<li>" + prefix + cgi.escape(line) + suffix
indentLevel = newIndentLevel
#Tie up loose ends
if(len(iterable) > 0):
if(lineNum > 0):
output += "</li>\n"
for level in range(indentLevel):
output += "</ul>\n</li>\n"
Expand Down

0 comments on commit 60936cc

Please sign in to comment.