mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Change ODS file line break tag from <text:line-break> to </text:p><text:p> so it works in LibreOffice
This commit is contained in:
parent
588f87eddb
commit
bd6c23298b
@ -826,8 +826,9 @@ abstract class bo_merge
|
||||
case 'text/rtf':
|
||||
return $contentstart.implode('\\par \\page\\pard\\plain',$contentrepeatpages).$contentend;
|
||||
case 'application/vnd.oasis.opendocument.text':
|
||||
case 'application/vnd.oasis.opendocument.spreadsheet':
|
||||
return $contentstart.implode('<text:line-break />',$contentrepeatpages).$contentend;
|
||||
case 'application/vnd.oasis.opendocument.spreadsheet':
|
||||
return $contentstart.implode('</text:p><text:p>',$contentrepeatpages).$contentend;
|
||||
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document':
|
||||
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
|
||||
return $contentstart.implode('<w:br w:type="page" />',$contentrepeatpages).$contentend;
|
||||
@ -1046,7 +1047,7 @@ abstract class bo_merge
|
||||
$break = '<text:line-break/>';
|
||||
break;
|
||||
case 'application/vnd.oasis.opendocument.spreadsheet': // open office calc
|
||||
$break = '<text:line-break/>';
|
||||
$break = '</text:p><text:p>';
|
||||
break;
|
||||
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': // ms word 2007
|
||||
$break = '</w:t><w:br/><w:t>';
|
||||
@ -1340,9 +1341,11 @@ abstract class bo_merge
|
||||
$LF = '}\par \pard\plain{';
|
||||
break;
|
||||
case 'application/vnd.oasis.opendocument.text':
|
||||
case 'application/vnd.oasis.opendocument.spreadsheet':
|
||||
$LF ='<text:line-break/>';
|
||||
break;
|
||||
case 'application/vnd.oasis.opendocument.spreadsheet': // open office calc
|
||||
$LF = '</text:p><text:p>';
|
||||
break;
|
||||
case 'application/xmlExcel.Sheet': // Excel 2003
|
||||
$LF = ' ';
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user