Permit formula in OOCalc

This commit is contained in:
sparkyx 2007-12-11 19:49:48 +00:00
parent caf556a64b
commit d704230240

View file

@ -211,13 +211,13 @@ class Document
// compute the regex
if ( $p_type=='OOo')
{
$regex="<<[A-Z]+_*[A-Z]*_*[A-Z]*_*[A-Z]*_*[0-9]*>>";
$regex="=*<<[A-Z]+_*[A-Z]*_*[A-Z]*_*[A-Z]*_*[0-9]*>>";
$lt="<";
$gt=">";
}
else
{
$regex="<<[A-Z]+_*[A-Z]*_*[A-Z]*_*[A-Z]*_*[0-9]*>>";
$regex="=*<<[A-Z]+_*[A-Z]*_*[A-Z]*_*[A-Z]*_*[0-9]*>>";
$lt="<";
$gt=">";
}
@ -471,6 +471,7 @@ class Document
function Replace($p_tag)
{
$p_tag=strtoupper($p_tag);
$p_tag=str_replace('=','',$p_tag);
$r="Tag inconnu";
static $counter=0;
switch ($p_tag)