title: Ugly xml output
body: <p>I'm using HaXml to transform a XML file and it's all quite working nicely. However the output HaXml generates looks really ugly, mainly because it inserts a linebreak at almost every closing bracket.
  Here's some code that generates a xml:</p>
  
  <pre><code>writeFile outPath (show . PP.content . head $ test (docContent (posInNewCxt "" Nothing) (xmlParse "" "")))
  
  test = 
      mkElemAttr "test" [("a", literal "1"), ("b", literal "2")]
          [
              mkElem "nested" []
          ]
  </code></pre>
  
  <p>and here's the output it generates:</p>
  
  <pre><code>&lt;test a="1" b="2"
    &gt;&lt;nested/&gt;&lt;/test&gt;
  </code></pre>
  
  <p>Of course it is worse with more elements. </p>
  
  <p>I know that HaXml uses Text.PrettyPrint.HughesPJ for rendering, but using different <a href="http://hackage.haskell.org/packages/archive/pretty/1.0.1.2/doc/html/Text-PrettyPrint-HughesPJ.html#8" rel="nofollow">styles</a>
   didn't change much.</p>
  
  <p>So, is there a way to change the output?</p>