Workitem 7895 - Excel5 : Formula : Percent
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@60223 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
d37e89f613
commit
ee74ef9254
|
@ -1179,6 +1179,9 @@ class PHPExcel_Writer_Excel5_Parser
|
||||||
case "&":
|
case "&":
|
||||||
return $token;
|
return $token;
|
||||||
break;
|
break;
|
||||||
|
case "%":
|
||||||
|
return $token;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// if it's a reference A1 or $A$1 or $A1 or A$1
|
// if it's a reference A1 or $A$1 or $A1 or A$1
|
||||||
if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/',$token) and
|
if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/',$token) and
|
||||||
|
@ -1476,9 +1479,14 @@ class PHPExcel_Writer_Excel5_Parser
|
||||||
$this->_advance();
|
$this->_advance();
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
// If it's a number or a percent
|
||||||
elseif (is_numeric($this->_current_token))
|
elseif (is_numeric($this->_current_token))
|
||||||
{
|
{
|
||||||
|
if($this->_lookahead == '%'){
|
||||||
|
$result = $this->_createTree('ptgPercent', $this->_current_token, '');
|
||||||
|
} else {
|
||||||
$result = $this->_createTree($this->_current_token, '', '');
|
$result = $this->_createTree($this->_current_token, '', '');
|
||||||
|
}
|
||||||
$this->_advance();
|
$this->_advance();
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,11 @@
|
||||||
|
|
||||||
|
|
||||||
Fixed in SVN:
|
Fixed in SVN:
|
||||||
|
- Bugfix: (Progi1984) Workitem 7895 - Excel5 : Formula : Percent
|
||||||
- Feature: (MBaker) Support for Extended Workbook Properties in Excel2007, Excel5 and OOCalc Readers; support for User-defined Workbook Properties in Excel2007 and OOCalc Readers
|
- Feature: (MBaker) Support for Extended Workbook Properties in Excel2007, Excel5 and OOCalc Readers; support for User-defined Workbook Properties in Excel2007 and OOCalc Readers
|
||||||
- Bugfix: (MB) Work item 14143 - NA() doesn't propagate in matrix calc - quick fix in JAMA/Matrix.php
|
- Bugfix: (MB) Work item 14143 - NA() doesn't propagate in matrix calc - quick fix in JAMA/Matrix.php
|
||||||
|
- Bugfix: (Progi1984) Workitem 7895 - Excel5 : Formula : Error constant
|
||||||
|
- Bugfix: (Progi1984) Workitem 7895 - Excel5 : Formula : Concatenation operator
|
||||||
|
|
||||||
2010-08-26 (v1.7.4):
|
2010-08-26 (v1.7.4):
|
||||||
- Bugfix: (Progi1984) Workitem 7895 - Excel5 : Formula : Power
|
- Bugfix: (Progi1984) Workitem 7895 - Excel5 : Formula : Power
|
||||||
|
|
Loading…
Reference in New Issue