title: Add newline in HTML source code using HTML Agility Pack
body: <p>I am modifying a HTML file using the HTML Agility Pack.</p>
  
  <p>Here is an example on a HTML file containing tables:</p>
  
  <pre><code>Dim document As New HtmlDocument
  Dim tables As Array
  
  document.Load(path_html)
  
  Dim div1 As HtmlNode = HtmlNode.CreateNode("&lt;div&gt;&lt;/div&gt;")
  Dim div2 As HtmlNode = HtmlNode.CreateNode("&lt;div&gt;&lt;/div&gt;")
  
  tables = document.DocumentNode.Descendants("table").ToArray()
  
  For Each tr As HtmlNode In tables.Descendants("tr").ToArray
     tr.AppendChild(div1)
     tr.AppendChild(div2)
  Next
  
  document.save(path_html)
  </code></pre>
  
  <p>And here is the result in the HTML file: </p>
  
  <pre><code>&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>What I would like is: </p>
  
  <pre><code>&lt;div&gt;&lt;/div&gt;
  &lt;div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I think this should be implemented by default as it makes my HTML file unclear.</p>
  
  <p>I saw this question (which is my exact issue) <a href="https://stackoverflow.com/questions/6263838/html-agility-pack-new-line-in-html-file">here</a> but the answer is not working for me (maybe because of VB.NET and the answer is C#).</p>
  
  <p>Can anyone help?</p>