From: Richard Heck Date: Thu, 19 Oct 2017 14:15:03 +0000 (-0400) Subject: We do not want to trim whitespace in the fallback, either. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4451 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4483a8f1fb8200029081d91e5a61bb05dd8c77db;p=features.git We do not want to trim whitespace in the fallback, either. --- 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);