title: JTextPane set with HTMLEditorkit not honouring text-align style when used with <pre> tag
body: <p>The code snippet below when run wont display any text in JTextPane.
  The text-align style in pre tag not at all honoured. If text-align style is removed OR if it is set to 'left', the text is displayed in JTextPane. We are using 'pre' tag to maintain the white spaces and tab indentation. </p>
  
  <p>My requirements are :</p>
  
  <p>1) Should be able to see the text in center/right align fashion.</p>
  
  <p>2) White spaces and tab in the text string need to displayed as it is on JTextPane.</p>
  
  <p>Any help would be most appreciated.!!</p>
  
  <pre><code>import javax.swing.text.BadLocationException;
  import javax.swing.text.Document;
  
  public class TestHTML {
  public static void main(String[] args){
      javax.swing.JTextPane editor = new javax.swing.JTextPane();
      editor.setEditorKit(new javax.swing.text.html.HTMLEditorKit());
      String htmlText = "&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;" +
              "&lt;pre style='text-align:center;color:blue;'&gt;   " +
              "Hello   Spaced            World       !!!&lt;/pre&gt;" +
              "&lt;/body&gt;&lt;/html&gt;";
      editor.setText(htmlText);
  
      Document doc = editor.getDocument();
      try {
          System.out.println(doc.getText(0, doc.getLength()));
      } catch (BadLocationException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      javax.swing.JFrame f = new javax.swing.JFrame("HTML Editor");
      f.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
      f.getContentPane().add(editor);
      f.pack();
      f.setVisible(true);
  }
  </code></pre>
  
  <p>}    </p>