mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
FindAdv: Amend 6e7fd68c
: Handle InsetNoteParams::Comment too
This commit is contained in:
parent
6e7fd68c79
commit
681334ce20
@ -251,12 +251,16 @@ void InsetNote::latex(otexstream & os, OutputParams const & runparams_in) const
|
||||
int InsetNote::plaintext(odocstringstream & os,
|
||||
OutputParams const & runparams_in, size_t max_length) const
|
||||
{
|
||||
if (params_.type == InsetNoteParams::Note
|
||||
&& (runparams_in.for_searchAdv & OutputParams::SearchNonOutput) == 0)
|
||||
return 0;
|
||||
if ((runparams_in.for_searchAdv & OutputParams::SearchNonOutput) == 0) {
|
||||
if (params_.type == InsetNoteParams::Note)
|
||||
return 0;
|
||||
else if (params_.type == InsetNoteParams::Comment
|
||||
&& (runparams_in.for_searchAdv != OutputParams::NoSearch))
|
||||
return 0;
|
||||
}
|
||||
|
||||
OutputParams runparams(runparams_in);
|
||||
if (params_.type == InsetNoteParams::Comment) {
|
||||
if (params_.type != InsetNoteParams::Greyedout) {
|
||||
runparams.inComment = true;
|
||||
// Ignore files that are exported inside a comment
|
||||
runparams.exportdata.reset(new ExportData);
|
||||
|
Loading…
Reference in New Issue
Block a user