diff --git a/api/src/Storage/Merge.php b/api/src/Storage/Merge.php
index 3ed4f9ee98..0054e952b7 100644
--- a/api/src/Storage/Merge.php
+++ b/api/src/Storage/Merge.php
@@ -602,14 +602,6 @@ abstract class Merge
case 'application/vnd.oasis.opendocument.text-template':
case 'application/vnd.oasis.opendocument.spreadsheet-template':
case 'application/vnd.oasis.opendocument.presentation-template':
- // It seems easier to split the parent tags here
- $replace_tags = array(
- '/<(ol|ul|table)( [^>]*)?>/' => '<$1$2>',
- '/<\/(ol|ul|table)>/' => '$1>',
- //'/<(li)(.*?)>(.*?)<\/\1>/' => '<$1 $2>$3$1>',
- );
- $content = preg_replace(array_keys($replace_tags),array_values($replace_tags),$content);
-
$doc = new DOMDocument();
$xslt = new XSLTProcessor();
$doc->load(EGW_INCLUDE_ROOT.'/api/templates/default/Merge/openoffice.xslt');
@@ -669,7 +661,7 @@ abstract class Merge
throw new Api\Exception('Unable to parse merged document for styles. Check warnings in log for details.');
}
$content = $xslt->transformToXml($element);
-
+//echo $content;die();
// Word 2003 needs two declarations, add extra declaration back in
if($mimetype == 'application/xml' && $mso_application_progid == 'Word.Document' && strpos($content, ''.$content;
diff --git a/api/templates/default/Merge/openoffice.xslt b/api/templates/default/Merge/openoffice.xslt
index 5b5a08addf..c96e8d9aa4 100644
--- a/api/templates/default/Merge/openoffice.xslt
+++ b/api/templates/default/Merge/openoffice.xslt
@@ -16,12 +16,12 @@
-
+
-
+
@@ -29,7 +29,7 @@
-
+
@@ -261,7 +261,27 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -287,11 +307,16 @@
-
+
+
+
+
+
+
@@ -312,7 +337,7 @@
-
+
@@ -332,7 +357,7 @@
-
+