]> git.lyx.org Git - features.git/commitdiff
XHTML: fix for encodings in attributes (patch by Kornel) feature/docbook
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Sep 2020 15:26:17 +0000 (17:26 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Sep 2020 18:43:42 +0000 (20:43 +0200)
src/xml.h

index d5b42332cad0e88762edc9bbead246b0b3c45730..857867ba905a85c8d717d3ff2d4d0a0ce4a2cd2d 100644 (file)
--- a/src/xml.h
+++ b/src/xml.h
@@ -184,7 +184,7 @@ struct StartTag
        ///
        explicit StartTag(std::string const & tag, std::string const & attr,
                                          bool keepempty = false)
-                       : tag_(from_ascii(tag)), attr_(from_ascii(attr)), keepempty_(keepempty) {}
+                       : tag_(from_ascii(tag)), attr_(from_utf8(attr)), keepempty_(keepempty) {}
        ///
        explicit StartTag(std::string const & tag, docstring const & attr,
                                          bool keepempty = false)