starmath/source/ooxmlimport.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 3998e5ca53afb3cebb8e9c33a27a3f9ca3f3ad19 Author: Pranam Lashkari <[email protected]> AuthorDate: Wed Dec 24 18:15:27 2025 +0530 Commit: Caolán McNamara <[email protected]> CommitDate: Wed Jan 7 22:19:17 2026 +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]> (cherry picked from commit 3c20957c43c3a8bb86b21a22acdbc762efc82566) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196304 Tested-by: Jenkins diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx index d5964a2279a1..a829cb0a6367 100644 --- a/starmath/source/ooxmlimport.cxx +++ b/starmath/source/ooxmlimport.cxx @@ -708,6 +708,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 + "}"; }
