#NEWLINE# def run( self , lines ) : #NEWLINE# #INDENT# '\n        Find and remove all Abbreviation references from the text.\n        Each reference is set as a new AbbrPattern in the markdown instance.\n        \n        ' #NEWLINE# new_text = [ ] #NEWLINE# for line in lines : #NEWLINE# #INDENT# m = ABBR_REF_RE . match ( line ) #NEWLINE# if m : #NEWLINE# #INDENT# abbr = m . group ( 'abbr' ) . strip ( ) #NEWLINE# title = m . group ( 'title' ) . strip ( ) #NEWLINE# self . markdown . inlinePatterns [ ( 'abbr-%s' % abbr ) ] = AbbrPattern ( self . _generate_pattern ( abbr ) , title ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# new_text . append ( line ) #NEWLINE# #UNINDENT# #UNINDENT# return new_text