From 4483a8f1fb8200029081d91e5a61bb05dd8c77db Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 19 Oct 2017 10:15:03 -0400 Subject: [PATCH] We do not want to trim whitespace in the fallback, either. --- src/insets/InsetCitation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index 366cbc60d7..83777969b5 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -425,8 +425,7 @@ docstring InsetCitation::basicLabel(bool for_xhtml) const do { // if there is no comma, then everything goes into key // and keys will be empty. - keys = trim(split(keys, key, ',')); - key = trim(key); + keys = split(keys, key, ','); if (!label.empty()) label += ", "; label += wrapCitation(key, key, for_xhtml); -- 2.39.2