You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added this code on the next line of 132(after htmlentities function)
$v = str_replace("\n", ' ',$v );
so that you can make newline in the cell data.
Original issue reported on code.google.com by [email protected] on 6 Oct 2011 at 6:58
The text was updated successfully, but these errors were encountered:
I ran into this issue as well. We need to be able to have multi-line text in
cells. Excel does support this already by using the
html entity. I found this
by making a multi-line cell in Excel, then exporting it to .xml with Save As.
The diff of my fix was as follows:
@@ -131,6 +131,7 @@ class Excel_XML
$type = 'Number';
endif;
$v = htmlentities($v, ENT_COMPAT, $this->sEncoding);
+ $v = str_replace("\n", "
", $v);
$cells .= "<Cell><Data ss:Type=\"$type\">" . $v . "</Data></Cell>\n";
endforeach;
$this->lines[] = "<Row>\n" . $cells . "</Row>\n";
Original issue reported on code.google.com by
[email protected]
on 6 Oct 2011 at 6:58The text was updated successfully, but these errors were encountered: