parameters: (elem)
return_statement: return b'\n'.join([s for s in dom_string.splitlines() if s.strip()])
docstring: Return a pretty-printed XML string for the Element.
docstring_summary: Return a pretty-printed XML string for the Element.
docstring_tokens: Return a pretty - printed XML string for the Element .
function: def prettify(elem):
      """Return a pretty-printed XML string for the Element.
      """
      rough_string = ET.tostring(elem, 'utf-8')
      reparsed = minidom.parseString(rough_string)
      dom_string = reparsed.toprettyxml(encoding="utf-8",indent="  ")
      return b'\n'.join([s for s in dom_string.splitlines() if s.strip()])
function_tokens: def prettify ( elem ) : rough_string = ET . tostring ( elem , 'utf-8' ) reparsed = minidom . parseString ( rough_string ) dom_string = reparsed . toprettyxml ( encoding = "utf-8" , indent = "  " ) return b'\n' . join ( [ s for s in dom_string . splitlines ( ) if s . strip ( ) ] )