commit eb294eadb5e7f22880da399ae082f74567bbfc4e Author: Juergen Spitzmueller <sp...@lyx.org> Date: Tue Feb 21 08:12:59 2023 +0100
Strip et al. for citation search --- src/insets/InsetCitation.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index 0deb024..d878056 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -213,10 +213,11 @@ void InsetCitation::openCitation() CiteItem ci; titledata = bi.getInfo(kvar, buffer(), ci, from_ascii(lyxrc.citation_search_pattern)); - // some cleanup: commas and " and ", as used in name lists, + // some cleanup: commas, " and " and " et al.", as used in name lists, // are not expected in file names titledata = subst(titledata, from_ascii(","), docstring()); titledata = subst(titledata, from_ascii(" and "), from_ascii(" ")); + titledata = subst(titledata, from_ascii(" et al."), docstring()); bi.getLocators(kvar, doi, url, file); LYXERR(Debug::INSETS, "Locators: doi:" << doi << " url:" << url << " file:" << file << " title data:" << titledata -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs