[LyX/master] XHTML: fix for encodings in attributes (patch by Kornel)

Thibaut Cuvelier tcuvelier at lyx.org
Sat Sep 19 18:18:56 UTC 2020


commit b5adcec28aac69e722e8b2bbf28ad2974010f853
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Sat Sep 19 17:26:17 2020 +0200

    XHTML: fix for encodings in attributes (patch by Kornel)
---
 src/xml.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/xml.h b/src/xml.h
index d5b4233..857867b 100644
--- 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)


More information about the lyx-cvs mailing list