diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp index c347bacfdf..fcd4c746c4 100644 --- a/src/insets/InsetBibitem.cpp +++ b/src/insets/InsetBibitem.cpp @@ -244,7 +244,7 @@ void InsetBibitem::fillWithBibKeys(BiblioInfo & keys, InsetIterator const & it) { docstring const key = getParam("key"); BibTeXInfo keyvalmap(false); - keyvalmap.label(trim(getParam("label"))); + keyvalmap.label(bibLabel()); DocIterator doc_it(it); doc_it.forwardPos(); keyvalmap[from_ascii("ref")] = doc_it.paragraph().asString();