#NEWLINE# def write( self , view , str ) : #NEWLINE# #INDENT# if ( None == str ) : #NEWLINE# #INDENT# str = self . line_ending ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# str = ( self . line_ending ( ) + str ) #NEWLINE# #UNINDENT# view . run_command ( 'insert_snippet' , { #NEWLINE# #INDENT# 'contents' : ( str . decode ( 'utf-8' ) if hasattr ( view , 'decode' ) else bytes ( str , 'utf-8' ) . decode ( 'utf-8' ) ) , #NEWLINE# #UNINDENT# } )