#NEWLINE# def get_items( self , block ) : #NEWLINE# #INDENT# ' Break a block into list items. ' #NEWLINE# items = [ ] #NEWLINE# for line in block . split ( '\n' ) : #NEWLINE# #INDENT# m = self . RE . match ( line ) #NEWLINE# if m : #NEWLINE# #INDENT# items . append ( [ ( m . group ( 2 ) in [ 'x' , 'X' ] ) , m . group ( 3 ) ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# items [ ( - 1 ) ] [ 1 ] = ( '%s\n%s' % ( items [ ( - 1 ) ] [ 1 ] , line ) ) #NEWLINE# #UNINDENT# #UNINDENT# return block