starmath/source/ooxmlimport.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 3c20957c43c3a8bb86b21a22acdbc762efc82566 Author: Pranam Lashkari <[email protected]> AuthorDate: Wed Dec 24 18:15:27 2025 +0530 Commit: Caolán McNamara <[email protected]> CommitDate: Sat Dec 27 17:44:07 2025 +0100 tdf#162972 math: special treatment for apostrophe(') in MSO problem: in MSO is only apostrophe is in superscript, MSO treats it as normal text i.e: in question 2' ^' both apostrophe will be displayed on same level Change-Id: Idc1eb144115ed0cb51c18a76b6d8b9423eb5e910 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196198 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx index f7821f67b4a3..f5752d736c85 100644 --- a/starmath/source/ooxmlimport.cxx +++ b/starmath/source/ooxmlimport.cxx @@ -681,6 +681,8 @@ OUString SmOoxmlImport::handleSsup() OUString e = readOMathArgInElement( M_TOKEN( e )); OUString sup = readOMathArgInElement( M_TOKEN( sup )); m_rStream.ensureClosingTag( M_TOKEN( sSup )); + if (sup == "'") + return "{" + e + "} {" + sup + "}"; return "{" + e + "} ^ {" + sup + "}"; }
