#NEWLINE# def transform( self , node , results ) : #NEWLINE# #INDENT# if node . prefix . count ( '#' ) : #NEWLINE# #INDENT# prefix_split = node . prefix . split ( '\n' ) #NEWLINE# new_prefix = '\n' . join ( ( [ line . rstrip ( ' \t' ) for line in node [ : ( - 1 ) ] ] + [ prefix_split [ ( - 1 ) ] ] ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# new_prefix = node . prefix . lstrip ( ' \t' ) #NEWLINE# if ( new_prefix [ 0 : 1 ] == '\\' ) : #NEWLINE# #INDENT# new_prefix = ( ' %s' % new_prefix ) #NEWLINE# #UNINDENT# #UNINDENT# if ( node . prefix != new_prefix ) : #NEWLINE# #INDENT# node . prefix = new_prefix #NEWLINE# node . changed ( )