The operand of an @ or of a union list ends where an operator further out ends it, and the whitespace in front of that operator was still inside it. So the blank was written inside the call parentheses, and since a range ending in whitespace is no longer one parenthesised group, the operand got a second pair of parentheses on top of the ones it had - @(A1) + 1 came out as _xlfn.SINGLE((A1) )+ 1. The wrapper now ends in front of those tokens. A blank before the # stays with the operand, that one is the operator being rewritten. Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> Change-Id: Ie6fe2df4e3e05b0ef845ebdb8a1aedb54b3f2a66 Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/10851 Tested-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit fd39c3a52d1cab7c0429bb98c4749bbfed088e6a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210478 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>