]> git.lyx.org Git - features.git/commitdiff
Preserve BibTeX metadata in LyXHTML output (fixes #8451).
authorJulien Rioux <jrioux@lyx.org>
Mon, 7 Jan 2013 16:36:21 +0000 (17:36 +0100)
committerJulien Rioux <jrioux@lyx.org>
Thu, 10 Jan 2013 11:31:16 +0000 (12:31 +0100)
src/BiblioInfo.cpp
status.20x

index 516d1b4670b555df9fa9caf7c39343ab9dacc7b6..f3fe83fdd0d5f23a57e1cfb3259cbadce6652b90 100644 (file)
@@ -438,7 +438,11 @@ docstring BibTeXInfo::expandFormat(string const & format,
                                        ret += trans;
                                } else {
                                        docstring const val = getValueForKey(key, xref);
+                                       if (richtext)
+                                               ret += from_ascii("<span class=\"bib-" + key + "\">");
                                        ret += val;
+                                       if (richtext)
+                                               ret += from_ascii("</span>");
                                }
                        } else {
                                // beginning of key
index db7e4ffc2b48d4f2a740f7898c6f43a22efb2703..dff640494477e341c1a66df086f498302597ff5d 100644 (file)
@@ -31,6 +31,8 @@ What's new
 - Allow additional support for Japanese pLaTeX with utf8 encoding
   (bug #8408).
 
+- Output BibTeX metadata in LyXHTML output (bug #8451).
+
 
 * TEX2LYX IMPROVEMENTS