]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.cpp
Context menu item to add unknown branch (rest of #7643)
[lyx.git] / src / insets / InsetBibtex.cpp
index 146d67cc83cf8d67843e8fc6db2e7d264d8b3a18..8f33a2de3c37ca2c2c1501cc7028aaedac1b0c11 100644 (file)
@@ -960,7 +960,8 @@ docstring InsetBibtex::xhtml(XHTMLStream & xs, OutputParams const &) const
                xs << html::StartTag("div", "class='bibtexentry'");
                // FIXME XHTML
                // The same name/id problem we have elsewhere.
-               string const attr = "id='" + to_utf8(entry.key()) + "'";
+               string const attr = 
+                       "id='LyXCite-" + to_utf8(html::cleanAttr(entry.key())) + "'";
                xs << html::CompTag("a", attr);
                docstring citekey;
                if (numbers)