title: Indentation in generated PDF using JasperReports
body: <p>I have a piece of HTML stored in a database as:</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li&gt;Pretend you're talking to a busy colleague and  have to sum up your   entire question in one sentence: what details can  you include that will help someone identify and solve your problem?&lt;/li&gt;
  &lt;li&gt;Spelling, grammar and punctuation are important!  Remember, this is the first part of your question others will see - you  want to make a good impression. If you're not comfortable writing in  English, ask a friend to proof-read it for you. &lt;/li&gt;
  &lt;li&gt;If you're having trouble summarizing the problem, write the title last - sometimes writing the rest of the question first can make it easier to describe the problem.&amp;nbsp;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I am displaying this piece of HTML in a PDF using a JasperReports textField, the above HTML should display like this in the generated PDF.</p>
  
  <p><ul>
      <li>Pretend you're talking to a busy colleague and  have to sum up your   entire question in one sentence: what details can  you include that will help someone identify and solve your problem?</li>
      <li>Spelling, grammar and punctuation are important!  Remember, this is the first part of your question others will see - you  want to make a good impression. If you're not comfortable writing in  English, ask a friend to proof-read it for you. </li>
      <li>If you're having trouble summarizing the problem, write the title <em>last</em> - sometimes writing the rest of the question first can make it easier to describe the problem.&nbsp;</li>
      </ul></p>
  
  <p>But this HTML is showing as :</p>
  
  <p><img src="https://i.stack.imgur.com/V6foY.png" alt="enter image description here"></p>
  
  <p>The snippet from <em>jrxml</em> file:</p>
  
  <pre><code>&lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
      &lt;reportElement positionType="Float" x="7" y="47" width="501" height="15" isRemoveLineWhenBlank="true"  forecolor="#283234"/&gt;
      &lt;textElement markup="html"&gt;
          &lt;font size="10"/&gt;
      &lt;/textElement&gt;
      &lt;textFieldExpression&gt;&lt;![CDATA[$F{description}]]&gt;&lt;/textFieldExpression&gt;
  &lt;/textField&gt;
  </code></pre>
  
  <p>HTML is feeded in <strong>description</strong> variable.</p>
  
  <p>Any idea how can I align text?</p>