]> git.lyx.org Git - lyx.git/commitdiff
Preserve BibTeX metadata in LyXHTML output (fixes #8451).
authorJulien Rioux <jrioux@lyx.org>
Tue, 8 Jan 2013 14:37:21 +0000 (15:37 +0100)
committerJulien Rioux <jrioux@lyx.org>
Tue, 8 Jan 2013 15:33:12 +0000 (16:33 +0100)
src/BiblioInfo.cpp

index 533941dddb67274306ad15d78441711960a1ace1..4ad119cefd0db38e3e8ff89f6c4a312a16c0efa4 100644 (file)
@@ -496,7 +496,9 @@ docstring BibTeXInfo::expandFormat(string const & format,
                                } else {
                                        docstring const val =
                                                getValueForKey(key, before, after, dialog, xref, lang);
+                                       ret += from_ascii("{!<span class=\"bib-" + key + "\">!}");
                                        ret += val;
+                                       ret += from_ascii("{!</span>!}");
                                }
                        } else {
                                // beginning of key