FindAdv: Handle search for quotes

Double quotes will be found if using the string '"' in pattern.
Single quotes needs "'" in pattern.
This commit is contained in:
Kornel Benko 2022-04-05 17:04:51 +02:00
parent 31ac9ed59f
commit 58f70b9da1

View File

@ -851,7 +851,7 @@ void InsetQuotes::latex(otexstream & os, OutputParams const & runparams) const
docstring qstr;
// In pass-thru context, we output plain quotes
if (runparams.pass_thru)
if (runparams.pass_thru || runparams.for_searchAdv != OutputParams::NoSearch)
qstr = (level_ == QuoteLevel::Primary) ? from_ascii("\"") : from_ascii("'");
else if (style == QuoteStyle::Plain && fontspec_) {
// For XeTeX and LuaTeX,we need to disable mapping to get straight