Permalink
Browse files

Merge paragraphs in ODS import (bug #3468272)

  • Loading branch information...
1 parent 9f68224 commit 9a16ec1ac90f72a007c8cc06b1c6e4aecc29d3a9 @nijel nijel committed Apr 19, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 libraries/import/ods.php
View
@@ -127,7 +127,12 @@
} elseif ($_REQUEST['ods_recognize_currency'] && !strcmp('currency', $cell_attrs['value-type'])) {
$value = (double)$cell_attrs['value'];
} else {
- $value = (string)$text;
+ /* We need to concatenate all paragraphs */
+ $values = array();
+ foreach ($text as $paragraph) {
+ $values[] = (string)$paragraph;
+ }
+ $value = implode("\n", $values);
}
if (! $col_names_in_first_row) {
$tempRow[] = $value;

0 comments on commit 9a16ec1

Please sign in to comment.