#NEWLINE# def render( self , text , **kwargs ) : #NEWLINE# #INDENT# if kwargs : #NEWLINE# #INDENT# self . kwargs . update ( kwargs ) #NEWLINE# #UNINDENT# from docutils import core #NEWLINE# publish_args = { #NEWLINE# #INDENT# 'source' : text , #NEWLINE# 'writer_name' : 'html4css1' , #NEWLINE# #UNINDENT# } #NEWLINE# publish_args . update ( ** self . kwargs ) #NEWLINE# parts = core . publish_parts ( ** publish_args ) #NEWLINE# return parts [ self . rst_part_name ]