#NEWLINE# def onCompletion( self , text ) : #NEWLINE# #INDENT# res = [ ] #NEWLINE# for l in text . split ( '\n' ) : #NEWLINE# #INDENT# if ( not l ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# l = l . split ( ':' ) #NEWLINE# if ( len ( l ) != 2 ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# res . append ( [ l [ 0 ] . strip ( ) , l [ 1 ] . strip ( ) ] ) #NEWLINE# #UNINDENT# self . panel . setChapters ( res )