From ce52b602c333f43c3985a31c3a482b2a48a55e3a Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Mon, 8 Oct 2012 14:25:17 +0200 Subject: [PATCH] add snippets link to default link bundle --- src/query/reslistpager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/query/reslistpager.cpp b/src/query/reslistpager.cpp index 3cda2cd3..d174255e 100644 --- a/src/query/reslistpager.cpp +++ b/src/query/reslistpager.cpp @@ -244,6 +244,7 @@ void ResListPager::displayDoc(RclConfig *config, int i, Rcl::Doc& doc, if (doc.haspages) { snipsbuf << "" << trans("Snippets") << "  "; + linksbuf << "  " << snipsbuf.str(); } // Build the result list paragraph: @@ -258,12 +259,12 @@ void ResListPager::displayDoc(RclConfig *config, int i, Rcl::Doc& doc, map subs; subs["A"] = !richabst.empty() ? richabst : ""; subs["D"] = datebuf; - subs["E"] = snipsbuf.rdbuf()->str(); + subs["E"] = snipsbuf.str(); subs["I"] = iconurl; subs["i"] = doc.ipath; subs["K"] = !doc.meta[Rcl::Doc::keykw].empty() ? string("[") + escapeHtml(doc.meta[Rcl::Doc::keykw]) + "]" : ""; - subs["L"] = linksbuf.rdbuf()->str(); + subs["L"] = linksbuf.str(); subs["N"] = numbuf; subs["M"] = doc.mimetype; subs["R"] = doc.meta[Rcl::Doc::keyrr];