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

    Fix bug #13180
---
 src/mathed/MathExtern.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp
index 5383f42998..9316adfabe 100644
--- a/src/mathed/MathExtern.cpp
+++ b/src/mathed/MathExtern.cpp
@@ -1347,6 +1347,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