diff options
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 9 |
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()) { |