From 36cc792d4690666299ae24804c1dc07ffcad2b6d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 26 Jun 2012 16:21:20 +0000 Subject: [PATCH] Format numbers inside writer tables as numbers --- etemplate/inc/class.bo_merge.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 17cd42503d..85769cb6bd 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -1018,6 +1018,11 @@ abstract class bo_merge $format = '/]+?)office:value-type="[^"]+"([^>]*?)>.?<([a-z].*?)[^>]*>('.implode('|',$names).')<\/\3>.?<\/table:table-cell>/s'; $replacement = '$4'; break; + case 'application/vnd.oasis.opendocument.text': // tables in open office writer + $format = '/]+?)office:value-type="[^"]+"([^>]*?)>.?<([a-z].*?)[^>]*>('.implode('|',$names).')<\/\3>.?<\/table:table-cell>/s'; + $replacement = '$4'; + break; + case 'application/vnd.oasis.opendocument.text': // open office writer case 'application/xmlExcel.Sheet': // Excel 2003 $format = '/'.preg_quote('','/').'('.implode('|',$names).')'.preg_quote('','/').'/'; $replacement = '$1';