mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Forgot the crucial piece of the last commit!!
This commit is contained in:
parent
3f748c79c3
commit
6633a93b6d
@ -3142,13 +3142,16 @@ docstring Paragraph::stringify(pos_type beg, pos_type end, int options,
|
||||
&& !d->params_.labelString().empty())
|
||||
os << d->params_.labelString() << ' ';
|
||||
|
||||
OutputParams op = runparams;
|
||||
op.for_search = true;
|
||||
|
||||
for (pos_type i = beg; i < end; ++i) {
|
||||
char_type const c = d->text_[i];
|
||||
if (isPrintable(c) || c == '\t'
|
||||
|| (c == '\n' && (options & AS_STR_NEWLINES)))
|
||||
os.put(c);
|
||||
else if (c == META_INSET && (options & AS_STR_INSETS)) {
|
||||
getInset(i)->plaintext(os, runparams);
|
||||
getInset(i)->plaintext(os, op);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user