@@ -311,16 +311,18 @@ class OListProcessor(BlockProcessor):
311311 def __init__ (self , parser ):
312312 BlockProcessor .__init__ (self , parser )
313313 # Detect an item (``1. item``). ``group(1)`` contains contents of item.
314- self .RE = re .compile ('' .join ([
315- r'^[ ]{0,' , str (self .tab_length - 1 ), r'}\d+\.[ ]+(.*)' ]))
314+ self .RE = re .compile (
315+ '' .join ([r'^[ ]{0,' , str (self .tab_length - 1 ),
316+ r'}\d+\.[ ]+(.*)' ]))
316317 # Detect items on secondary lines. they can be of either list type.
317- self .CHILD_RE = re .compile ('' .join ([
318- r'^[ ]{0,' , str (self .tab_length - 1 ), '}((\d+\.)|[*+-])[ ]+(.*)' ]))
318+ self .CHILD_RE = re .compile (
319+ '' .join ([r'^[ ]{0,' , str (self .tab_length - 1 ),
320+ r'}((\d+\.)|[*+-])[ ]+(.*)' ]))
319321 # Detect indented (nested) items of either type
320- self .INDENT_RE = re .compile ('' . join ([
321- r'^[ ]{' , str (self .tab_length ), ',' , str ( self . tab_length * 2 - 1 ) ,
322- r'}((\d+\.)|[*+-])[ ]+.*' ]))
323-
322+ self .INDENT_RE = re .compile (
323+ '' . join ([ r'^[ ]{' , str (self .tab_length ), ',' ,
324+ str ( self . tab_length * 2 - 1 ),
325+ r'}((\d+\.)|[*+-])[ ]+.*' ]))
324326
325327 def test (self , parent , block ):
326328 return bool (self .RE .match (block ))
@@ -419,8 +421,9 @@ class UListProcessor(OListProcessor):
419421 def __init__ (self , parser ):
420422 OListProcessor .__init__ (self , parser )
421423 # Detect an item (``1. item``). ``group(1)`` contains contents of item.
422- self .RE = re .compile ('' .join ([
423- r'^[ ]{0,' , str (self .tab_length - 1 ), r'}[*+-][ ]+(.*)' ]))
424+ self .RE = re .compile (
425+ '' .join ([r'^[ ]{0,' , str (self .tab_length - 1 ),
426+ r'}[*+-][ ]+(.*)' ]))
424427
425428
426429class HashHeaderProcessor (BlockProcessor ):
0 commit comments