title: how to pretty_print xincluded file?
body: <pre><code>from lxml import etree
  tree = etree.parse(&quot;part_000001.xml&quot;)
  tree.xinclude()
  string = etree.tostring(tree, pretty_print=True)
  
  print(string)
  </code></pre>
  <p>I'm trying to pretty_print an XML file, my pretty_print option is turned on in the console (%%pprint to turn it on and off), but the terminal still doesn't insert an actual newline and instead &quot;\n&quot; is included in the string.</p>
  <p>How to change it so that the newline is actually inserted?</p>