def html_format(value):
 if (not value):
  return ''
 elif (MARKUP_LANGUAGE == 'markdown'):
  return markdown(value)
 elif (MARKUP_LANGUAGE == 'textile'):
  return textile(value)
 elif (MARKUP_LANGUAGE == 'restructuredtext'):
  return restructuredtext(value)
 elif ('</p>' not in value):
  return linebreaks(value)
 return value

def html_format ( value ) : if ( not value ) : return '' elif ( MARKUP_LANGUAGE == 'markdown' ) : return markdown ( value ) elif ( MARKUP_LANGUAGE == 'textile' ) : return textile ( value ) elif ( MARKUP_LANGUAGE == 'restructuredtext' ) : return restructuredtext ( value ) elif ( '</p>' not in value ) : return linebreaks ( value ) return value
returns the value formatted in html .