Fail to do newline in rich text

Topics: Developer Forum, User Forum
Nov 13, 2014 at 9:49 AM
Problem :

I have two fields: summary and description. Both of them will be in one cell and I need to make summary bold and then a new line and another newline then come to the description. I used this method
$richText = new PHPExcel_RichText();
$bold = $richText->createTextRun($summary);
$excel->getActiveSheet()->getCell($column.$row)->setValue($richText);               $excel->getActiveSheet()->getStyle($column.$row)->getAlignment()->setWrapText(true);
  1. Summary is bolded
  2. newline is not happening
  3. newlines in description text also removed ( reason i know is if i dont use rich text, but $excel->getActiveSheet()->getCell($column.$row)->setValue($description); newline in description also display nicely)
What shall i do? I cant find any solution online