commit eab73de5f134930c84bb75d78c9aa8b91558b418
Author: Thibaut Cuvelier <[email protected]>
Date: Sat Mar 22 23:21:20 2025 +0100
Make log messages clearer.
---
src/mathed/MathStream.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/mathed/MathStream.cpp b/src/mathed/MathStream.cpp
index 0c56fbd9ad..5b6a98d9df 100644
--- a/src/mathed/MathStream.cpp
+++ b/src/mathed/MathStream.cpp
@@ -693,6 +693,10 @@ MathMLStream & operator<<(MathMLStream & ms, docstring
const & s)
} else if (within_entity) { // Within
new entity.
buf += c;
} else {
+ if (!buf.empty()) {
+ lyxerr << "Assertion
failed in MathLMStream::operator<<(docstring): the buffer is not empty (" <<
buf << ") when processing a single character";
+ }
+
buf = docstring(c, 1);
ms.os_ <<
ms.current_font_.convertCharacterToUnicodeEntityWithFont(buf, ms.inText());
buf.clear();
@@ -704,7 +708,7 @@ MathMLStream & operator<<(MathMLStream & ms, docstring
const & s)
}
}
if (!buf.empty()) {
- lyxerr << "Assertion failed in
MathLMStream::operator<<(docstring): the buffer is not empty (" << buf << ")";
+ lyxerr << "Assertion failed in
MathLMStream::operator<<(docstring): the buffer is not empty (" << buf << ")
after processing the whole string";
ms.os_ <<
ms.current_font_.convertCharacterToUnicodeEntityWithFont(buf, ms.inText());
}
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs