New version of libreoffice use the numeric in another way
This commit is contained in:
parent
77b14021f8
commit
8eb4c6e20a
1 changed files with 5 additions and 0 deletions
|
|
@ -454,9 +454,14 @@ class Acc_Bilan
|
|||
/* allow numeric cel in ODT for the formatting and formula */
|
||||
if ( is_numeric($a) )
|
||||
{
|
||||
/* -- for libreOffice < 5 or openoffice -- */
|
||||
$searched='office:value-type="string"><text:p>'.$f2_str;
|
||||
$replaced='office:value-type="float" office:value="'.$a.'"><text:p>'.$f2_str;
|
||||
$line_rtf=str_replace($searched, $replaced, $line_rtf);
|
||||
/* -- for libreOffice > 5 -- */
|
||||
$searched='office:value-type="string" calcext:value-type="string"><text:p>'.$f2_str;
|
||||
$replaced='office:value-type="float" office:value="'.$a.'" calcext:value-type="float"><text:p>'.$f2_str;
|
||||
$line_rtf=str_replace($searched, $replaced, $line_rtf);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue