]> git.lyx.org Git - features.git/commitdiff
InsetIndex: enable escaping for terms in the index
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Nov 2022 23:19:53 +0000 (00:19 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Nov 2022 23:19:53 +0000 (00:19 +0100)
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

index 181c99b43eef50b2dbd5dca11167806007e8a0de..3788a360f5f1440aeddd05b765220718b1973994 100644 (file)
@@ -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()) {