summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 3907c1ac8314..be5ce09d132f 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -2290,11 +2290,18 @@ const FormulaToken* FormulaCompiler::CreateStringFromToken( OUStringBuffer& rBuf
bWriteSpaces = false;
}
}
- else if (mxSymbols->isOOXML())
+ if (bWriteSpaces)
{
+ // ODF v1.3 OpenFormula 5.14 Whitespace states "whitespace shall
+ // not separate a function name from its initial opening
+ // parenthesis".
+ //
// ECMA-376-1:2016 18.17.2 Syntax states "that no space characters
// shall separate a function-name from the left parenthesis (()
// that follows it." and Excel even chokes on it.
+ //
+ // Suppress/remove it in any case also in UI, it will not be
+ // preserved.
const FormulaToken* p = maArrIterator.PeekPrevNoSpaces();
if (p && p->IsFunction())
{
d>Eike Rathke 2013-09-10changed all 'sh' language to 'sr-Latn'Eike Rathke 2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks 2012-09-28gbuild: invert handling of standard system libraries:Michael Stahl 2012-09-28gbuild: replace direct gb_STDLIBS use with ...Michael Stahl 2012-09-28gbuild: split uwinapi out of gb_STDLIBSMichael Stahl