From 6633a93b6dad082b892720d3c3a420219e9f6462 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 12 Mar 2013 13:12:45 -0400 Subject: [PATCH] Forgot the crucial piece of the last commit!! --- src/Paragraph.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index ec2ff51cc1..8df7ab7026 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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); } } -- 2.39.2