commit 77f0fbdc9a186f9e544077e2288f48ceabfc11ab
Author: Thibaut Cuvelier <tcuvel...@lyx.org>
Date:   Sun Nov 20 00:19:53 2022 +0100

    InsetIndex: enable escaping for terms in the index
    
    The previous code explicitly disabled it and this behaviour caused problems 
(like "A&A" being output as-is, which is wrong in HTML: it should be "A&amp;A").
---
 src/insets/InsetIndex.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index 181c99b..3788a36 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -1730,7 +1730,7 @@ void outputIndexPage(XMLStream & xs, const IndexNode* 
root_node, unsigned depth
 
        xs << xml::StartTag("li", "class='" + generateCssClassAtDepth(depth) + 
"'");
        xs << xml::CR();
-       xs << XMLStream::ESCAPE_NONE << termAtLevel(root_node, depth);
+       xs << termAtLevel(root_node, depth);
        // By tree assumption, all the entries at this node have the same set 
of terms.
 
        if (!root_node->entries.empty()) {
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to