From ad3e6c69b2cec7adcdadb2d7853cedd58d305206 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 17 Jul 2022 19:09:22 +0200 Subject: [PATCH] =?utf8?q?Export=20'=20as=20=E2=80=99=20in=20HTML?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is similar to what LaTeX does in its output. See the (long) discussion in ticket #11244. --- src/Paragraph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 73edb5d240..f2709c8b4c 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -4012,6 +4012,8 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf, runparams, i); if (c == ' ' && (style.free_spacing || runparams.free_spacing)) xs << XMLStream::ESCAPE_NONE << " "; + else if (c == '\'') + xs << XMLStream::ESCAPE_NONE << "’"; else xs << c; } -- 2.39.5