title: How can I right align a RichTextString in a cell?
body: <p>When I set the alignment on a cell that's a number it aligns, when the cell is text it won't.</p>
  
  <pre><code>Workbook workbook = new XSSFWorkbook();
  CreationHelper creationHelper = workbook.getCreationHelper();
  Sheet sheet = workbook.createSheet("Sheet1");
  Row row = sheet.createRow(0);
  
  // doesn't
  Cell richTextCell = row.createCell(0);
  RichTextString richTextString = creationHelper.createRichTextString("So rich!");
  richTextCell.setCellValue(richTextString);
  CellStyle richTextCellStyle = richTextCell.getCellStyle();
  richTextCellStyle.setAlignment(CellStyle.ALIGN_RIGHT);
  
  // works
  Cell numberCell = row.createCell(1);
  numberCell.setCellValue(12.34);
  CellStyle numberCellStyle = numberCell.getCellStyle();
  numberCellStyle.setAlignment(CellStyle.ALIGN_RIGHT);
  
  
  FileOutputStream fileOutputStream = new FileOutputStream("workbook.xlsx");
  try {
      workbook.write(fileOutputStream);
  } finally {
      fileOutputStream.close();
  }
  </code></pre>