commit 0cbc2f6fb93e4d10cbddb3c58fb8017a69763491
Author: Juergen Spitzmueller <[email protected]>
Date:   Fri Nov 21 10:09:18 2025 +0100

    Fix thinko introduced with 9cc05eac19c6 (#13251)
    
    (cherry picked from commit 01e3d91d2a52db71e2913893bce5cd01057d87bb)
---
 src/mathed/InsetMathDelim.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/mathed/InsetMathDelim.cpp b/src/mathed/InsetMathDelim.cpp
index bd61a922ae..f597c1165f 100644
--- a/src/mathed/InsetMathDelim.cpp
+++ b/src/mathed/InsetMathDelim.cpp
@@ -34,14 +34,13 @@ namespace lyx {
 
 static docstring convertDelimToLatexName(docstring const & name, docstring 
const & escape_chars)
 {
-       docstring result;
+       docstring result = '\\' + name + ' ';
        if (name.size() == 1) {
                char_type const c = name[0];
                if (c == '<' || c == '(' || c == '[' || c == '.'
                    || c == '>' || c == ')' || c == ']' || c == '/' || c == '|')
                        result = name;
-       } else
-               result = '\\' + name + ' ';
+       }
 
        // since some chars used for delims ('|' at least)
        // must be escaped in Index and Nomencl, we have
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to