#NEWLINE# def run( self , edit ) : #NEWLINE# #INDENT# view = self . view #NEWLINE# backup = [ ] #NEWLINE# for sel in view . sel ( ) : #NEWLINE# #INDENT# if ( 'orgmode.checkbox.summary' not in view . scope_name ( sel . end ( ) ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# backup . append ( region ) #NEWLINE# summary = view . extract_scope ( sel . end ( ) ) #NEWLINE# line = view . line ( summary ) #NEWLINE# self . update_line ( edit , line ) #NEWLINE# #UNINDENT# view . sel ( ) . clear ( ) #NEWLINE# for region in backup : #NEWLINE# #INDENT# view . sel ( ) . add ( region )