Skip to content

Commit 509316e

Browse files
committed
comment explaining why, and what causes the need for this try/except
1 parent 4221337 commit 509316e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

textile/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,12 @@ def fTextileList(self, match):
346346
# This will only increment the count for list items, not
347347
# definition items
348348
if showitem:
349+
# Assume properly formatted input
349350
try:
350351
self.olstarts[tl] = self.olstarts[tl] + 1
352+
# if we get here, we've got some poor textile formatting.
353+
# add this type of list to olstarts and assume we'llstart
354+
# it at 1. expect screwy output.
351355
except KeyError:
352356
self.olstarts[tl] = 1
353357

0 commit comments

Comments
 (0)