From ef7b35ab7ddc8ba174e27f063208dbe38ed02e27 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 29 Apr 2011 01:35:29 -0400 Subject: Made lazy ordered lists a settable option. The previous behavior (on) is the default. --- markdown/blockprocessors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'markdown/blockprocessors.py') diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index 5949c00..cc1d2a8 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -346,7 +346,7 @@ class OListProcessor(BlockProcessor): # This is a new list so create parent with appropriate tag. lst = util.etree.SubElement(parent, self.TAG) # Check if a custom start integer is set - if self.STARTSWITH !='1': + if not self.parser.markdown.lazy_ol and self.STARTSWITH !='1': lst.attrib['start'] = self.STARTSWITH self.parser.state.set('list') -- cgit v1.2.3