mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
FindAdv: Allow to search in LyX-Note also if ignoring format
This commit is contained in:
parent
c559b69fe1
commit
6e7fd68c79
@ -251,7 +251,8 @@ void InsetNote::latex(otexstream & os, OutputParams const & runparams_in) const
|
|||||||
int InsetNote::plaintext(odocstringstream & os,
|
int InsetNote::plaintext(odocstringstream & os,
|
||||||
OutputParams const & runparams_in, size_t max_length) const
|
OutputParams const & runparams_in, size_t max_length) const
|
||||||
{
|
{
|
||||||
if (params_.type == InsetNoteParams::Note)
|
if (params_.type == InsetNoteParams::Note
|
||||||
|
&& (runparams_in.for_searchAdv & OutputParams::SearchNonOutput) == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
OutputParams runparams(runparams_in);
|
OutputParams runparams(runparams_in);
|
||||||
@ -260,8 +261,10 @@ int InsetNote::plaintext(odocstringstream & os,
|
|||||||
// Ignore files that are exported inside a comment
|
// Ignore files that are exported inside a comment
|
||||||
runparams.exportdata.reset(new ExportData);
|
runparams.exportdata.reset(new ExportData);
|
||||||
}
|
}
|
||||||
|
if ((runparams_in.for_searchAdv & OutputParams::SearchNonOutput) == 0)
|
||||||
os << '[' << buffer().B_("note") << ":\n";
|
os << '[' << buffer().B_("note") << ":\n";
|
||||||
InsetText::plaintext(os, runparams, max_length);
|
InsetText::plaintext(os, runparams, max_length);
|
||||||
|
if ((runparams_in.for_searchAdv & OutputParams::SearchNonOutput) == 0)
|
||||||
os << "\n]";
|
os << "\n]";
|
||||||
|
|
||||||
return PLAINTEXT_NEWLINE + 1; // one char on a separate line
|
return PLAINTEXT_NEWLINE + 1; // one char on a separate line
|
||||||
|
Loading…
Reference in New Issue
Block a user