commit 191d36eb985b8c5d0e9a963216aef36b1a98b86f
Author: Enrico Forestieri <[email protected]>
Date:   Wed Apr 30 13:03:09 2025 +0200

    Fix bug #13180
    
    (cherry picked from commit 9251023b0dbceb244ccf05cf3b6deb87524213f3)
---
 src/mathed/MathExtern.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp
index 9b572bc881..ac9ef931a7 100644
--- a/src/mathed/MathExtern.cpp
+++ b/src/mathed/MathExtern.cpp
@@ -1349,6 +1349,8 @@ namespace {
                // remove 'ans = ' taking into account that there may be an
                // ansi control sequence before, such as '\033[?1034hans = '
                size_t i = out.find("ans = ");
+               if (i == string::npos)
+                       i = out.find("ans =\n");
                if (i == string::npos)
                        return MathData(nullptr);
                out = out.substr(i + 6);
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to