tdf#170171 math: allow equestions to end without opening brackets
problem: some user complained equation not rendering correctly if it ended with opening brackets while it worked fine in MSO i.e: [0;+∞[ Change-Id: Iccfbfd0782379985736cdc181479f167ca0beb95 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196197 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> (cherry picked from commit 7a4ea5e1e197798ec0c39c442bfc51397e00d1c4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196303 Tested-by: Jenkins
This commit is contained in:
committed by
Caolán McNamara
parent
7b1068c39e
commit
966cbcaeea
@@ -347,9 +347,9 @@ OUString SmOoxmlImport::handleD()
|
||||
|| closing == OUStringChar(MS_RMATHANGLE))
|
||||
closing = " right rangle";
|
||||
// use scalable brackets (the explicit "left" or "right")
|
||||
if( opening == "(" || opening == "[" )
|
||||
if( opening == "(" || opening == "[" || opening == ")" || opening == "]" )
|
||||
opening = "left " + opening;
|
||||
if( closing == ")" || closing == "]" )
|
||||
if( closing == ")" || closing == "]" || closing == "(" || closing == "[")
|
||||
closing = " right " + closing;
|
||||
if( separator == "|" ) // plain "|" would be actually "V" (logical or)
|
||||
separator = " mline ";
|
||||
|
||||
Reference in New Issue
Block a user