#NEWLINE# def restructuredtext( value , settings = RESTRUCTUREDTEXT_SETTINGS ) : #NEWLINE# #INDENT# '\n    RestructuredText processing with optionnally custom settings.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# from docutils.core import publish_parts #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# warnings . warn ( "The Python docutils library isn't installed." , RuntimeWarning ) #NEWLINE# return value #NEWLINE# #UNINDENT# parts = publish_parts ( source = force_bytes ( value ) , writer_name = 'html4css1' , settings_overrides = settings ) #NEWLINE# return force_text ( settings [ 'fragment' ] )