]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.cpp
Compute and output numbers for numerical citations.
[lyx.git] / src / insets / InsetBibtex.cpp
index 70174730b98842bdbceb84dbf8e0051c7a2eeb99..1abafd60b3189679a6c57d3a41ba4d47770d3406 100644 (file)
@@ -933,9 +933,12 @@ int InsetBibtex::plaintext(odocstringstream & os,
 {
        docstring const reflabel = buffer().B_("References");
 
-       if (op.for_tooltip || op.for_toc) {
-               os << reflabel;
-               return reflabel.size();
+       // We could output more information here, e.g., what databases are included
+       // and information about options. But I don't necessarily see any reason to
+       // do this right now.
+       if (op.for_tooltip || op.for_toc || op.for_search) {
+               os << '[' << reflabel << ']' << '\n';
+               return PLAINTEXT_NEWLINE;
        }
 
        BiblioInfo bibinfo = buffer().masterBibInfo();