msodumper/formula.py | 5 +++++ 1 file changed, 5 insertions(+) New commits: commit 37bdb2326f91223c2f76822231576524a56b5f5d Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Sat Aug 1 18:42:32 2015 +0200
support unary minus in formulas diff --git a/msodumper/formula.py b/msodumper/formula.py index cd00237..75a35f5 100644 --- a/msodumper/formula.py +++ b/msodumper/formula.py @@ -311,6 +311,10 @@ class PtgUnion(PtgBase): def getText (self): return '(union)' +class PtgUminus(PtgBase): + def getText (self): + return "(unary minux)" + class _Area3d(PtgBase): def parseBytes (self): self.xti = self.strm.readUnsignedInt(2) @@ -752,6 +756,7 @@ _tokenMap = { 0x05: PtgMul, 0x06: PtgDiv, 0x10: PtgUnion, + 0x13: PtgUminus, 0x15: PtgParen, 0x16: PtgMissArg, 0x17: PtgStr, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits