]> git.lyx.org Git - lyx.git/commitdiff
Export ' as ’ in HTML
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 17 Jul 2022 17:09:22 +0000 (19:09 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 25 Jul 2022 21:07:23 +0000 (23:07 +0200)
This is similar to what LaTeX does in its output.

See the (long) discussion in ticket #11244.

src/Paragraph.cpp

index 73edb5d24045feeee4c64c35afbaca45747fe3df..f2709c8b4c196dc9438e3cc14c853d6b5f7b6240 100644 (file)
@@ -4012,6 +4012,8 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
                                               runparams, i);
                        if (c == ' ' && (style.free_spacing || runparams.free_spacing))
                                xs << XMLStream::ESCAPE_NONE << "&nbsp;";
+                       else if (c == '\'')
+                               xs << XMLStream::ESCAPE_NONE << "&#8217;";
                        else
                                xs << c;
                }