]> git.lyx.org Git - features.git/commitdiff
Fix bibitem bug for XHTML.
authorRichard Heck <rgheck@comcast.net>
Thu, 3 Dec 2009 19:43:00 +0000 (19:43 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 3 Dec 2009 19:43:00 +0000 (19:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32293 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBibitem.cpp

index 1e7d13972efc1e647230b383215ca8fdb3e35cfc..b5b4b44ca0952a82533b61b88f554654ecc0b346 100644 (file)
@@ -277,7 +277,7 @@ docstring InsetBibitem::xhtml(XHTMLStream & xs, OutputParams const &) const
        // need to use "name" anyway, eventually, because some browsers do not
        // handle jumping to ids. If we don't do that, though, we can just put the
        // id into the span tag.
-       string const attrs = "id='" + to_utf8(getParam("key")) + "'";
+       string const attrs = "id='" + to_utf8(bibLabel()) + "'";
        xs << CompTag("a", attrs);
        xs << StartTag("span", "class='biblabel'");
        xs << bibLabel();