title: Format tab in RichTextBox
body: <p>I want to format text in a RichTextBox like the folowing example:</p>
  
  <p>"A tab-space here" TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT.</p>
  
  <p>"A tab-space here" TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT.</p>
  
  <p>"A tab-space here" TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT.</p>
  
  <p>If I format the text in word and paste it into the RichTextBox control visually I can see "styled" in the format I am looking for. Once I submit the text and debug the RichTextBox content, the tab-space at the beginning of each line disappears. </p>
  
  <p><em>Side Note: I am very interested in achieving this since I use this control to paste in it python scripts.</em></p>
  
  <p>How can I avoid that ?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I have the following code:</p>
  
  <pre><code>var html = string.Empty;
  var wholeText = new TextRange(block.ContentStart, block.ContentEnd);
  html += wholeText.Text;
  </code></pre>
  
  <p>In debug mode I take a look at wholeText.Text to see how the text is formatted (I can see it as a text/html or xml editor). At this point is where I don't see the tab-spaces that I've described before.</p>