FindAdv: Handle neg-spaces like normal space if searching without format

(cherry picked from commit 07cacef398)
This commit is contained in:
Kornel Benko 2023-12-31 14:27:40 +01:00
parent 1edbf565e4
commit 32a680e4fe
2 changed files with 7 additions and 2 deletions

View File

@ -773,6 +773,11 @@ int InsetSpace::plaintext(odocstringstream & os,
case InsetSpaceParams::NEGTHIN: case InsetSpaceParams::NEGTHIN:
case InsetSpaceParams::NEGMEDIUM: case InsetSpaceParams::NEGMEDIUM:
case InsetSpaceParams::NEGTHICK: case InsetSpaceParams::NEGTHICK:
if (rp.find_effective()) {
os << ' ';
return 1;
}
else
return 0; return 0;
default: default:
os << ' '; os << ' ';

View File

@ -136,7 +136,7 @@ public:
/// ///
void validate(LaTeXFeatures & features) const override; void validate(LaTeXFeatures & features) const override;
/// ///
bool findUsesToString() const override { return true; } bool findUsesToString() const override { return false; }
/// ///
void toString(odocstream &) const override; void toString(odocstream &) const override;
/// ///