case LFUN_INSET_MODIFY: {
if (cmd.getArg(0) == "changetype") {
+ cur.recordUndoInset(ATOMIC_UNDO, this);
params_.index = from_utf8(cmd.getArg(1));
break;
}
cmd = subst(cmd, "printindex", "printsubindex");
else
cmd = subst(cmd, "printsubindex", "printindex");
+ cur.recordUndo();
setCmdName(cmd);
break;
} else if (cmd.argument() == from_ascii("check-printindex*")) {
if (suffixIs(cmd, '*'))
break;
cmd += '*';
+ cur.recordUndo();
setParam("type", docstring());
setCmdName(cmd);
break;
if (level == 3) {
// another subsubentry
xs << html::StartTag("li", "class='subsubentry'")
- << XHTMLStream::NextRaw() << subsub;
+ << XHTMLStream::ESCAPE_NONE << subsub;
} else if (level == 2) {
// there are two ways we can be here:
// (i) we can actually be inside a sub-entry already and be about
// have a sub-sub-entry.
if (eit->sub != last.sub)
xs << html::StartTag("li", "class='subentry'")
- << XHTMLStream::NextRaw() << sub;
+ << XHTMLStream::ESCAPE_NONE << sub;
if (!subsub.empty()) {
// it's actually a subsubentry, so we need to start that list
xs.cr();
xs << html::StartTag("ul", "class='subsubentry'")
<< html::StartTag("li", "class='subsubentry'")
- << XHTMLStream::NextRaw() << subsub;
+ << XHTMLStream::ESCAPE_NONE << subsub;
level = 3;
}
} else {
xs.cr();
xs << html::StartTag("ul", "class='subentry'")
<< html::StartTag("li", "class='subentry'")
- << XHTMLStream::NextRaw() << sub;
+ << XHTMLStream::ESCAPE_NONE << sub;
level = 2;
if (!subsub.empty()) {
// and a sub-sub-entry
xs.cr();
xs << html::StartTag("ul", "class='subsubentry'")
<< html::StartTag("li", "class='subsubentry'")
- << XHTMLStream::NextRaw() << subsub;
+ << XHTMLStream::ESCAPE_NONE << subsub;
level = 3;
}
}