X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNote.cpp;h=9b4ba5768d42407f9dd5da5d63be85b67b9bf13d;hb=9914f21bceef9610bd1822f96eff0aa6d1a8df7c;hp=da9dd3366974382eb3c655828bbce06e49d1d393;hpb=6056db3212555ce5b7c599a350e95e9a4b5d1853;p=lyx.git diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp index da9dd33669..9b4ba5768d 100644 --- a/src/insets/InsetNote.cpp +++ b/src/insets/InsetNote.cpp @@ -310,6 +310,10 @@ void InsetNote::validate(LaTeXFeatures & features) const switch (params_.type) { case InsetNoteParams::Comment: features.require("verbatim"); + if (features.runparams().flavor == OutputParams::HTML) + // we do output this but set display to "none" by default, + // but people might want to use it. + InsetCollapsable::validate(features); break; case InsetNoteParams::Greyedout: features.require("color"); @@ -322,9 +326,9 @@ void InsetNote::validate(LaTeXFeatures & features) const } -docstring InsetNote::contextMenuName() const +string InsetNote::contextMenuName() const { - return from_ascii("context-note"); + return "context-note"; } bool InsetNote::allowSpellCheck() const