X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBiblioInfo.cpp;h=70127798522effae211a946b48d67658c7600892;hb=10be0c43f20a27a1e6af82241ad5ec6b5cad3eca;hp=86ae70b7db95464ddb4f633ece5a72d39238e0c8;hpb=b992968a1545d862fb8a618271f77fd367cb6a13;p=lyx.git diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp index 86ae70b7db..7012779852 100644 --- a/src/BiblioInfo.cpp +++ b/src/BiblioInfo.cpp @@ -466,7 +466,15 @@ docstring parseOptions(docstring const & format, string & optkey, } // anon namespace - +/* FIXME +Bug #9131 revealed an oddity in how we are generating citation information +when more than one key is given. We end up building a longer and longer format +string as we go, which we then have to re-parse, over and over and over again, +rather than generating the information for the individual keys and then putting +all of that together. We do that to deal with the way separators work, from what +I can tell, but it still feels like a hack. Fixing this would require quite a +bit of work, however. +*/ docstring BibTeXInfo::expandFormat(docstring const & format, BibTeXInfo const * const xref, int & counter, Buffer const & buf, docstring before, docstring after, docstring dialog, bool next) const @@ -934,7 +942,9 @@ docstring const BiblioInfo::getLabel(vector keys, bool BiblioInfo::isBibtex(docstring const & key) const { - BiblioInfo::const_iterator it = find(key); + docstring key1; + split(key, key1, ','); + BiblioInfo::const_iterator it = find(key1); if (it == end()) return false; return it->second.isBibTeX();