commit ad3e6c69b2cec7adcdadb2d7853cedd58d305206
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Sun Jul 17 19:09:22 2022 +0200

    Export ' as ’ in HTML
    
    This is similar to what LaTeX does in its output.
    
    See the (long) discussion in ticket #11244.
---
 src/Paragraph.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 73edb5d..f2709c8 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 << "&nbsp;";
+                       else if (c == '\'')
+                               xs << XMLStream::ESCAPE_NONE << "&#8217;";
                        else
                                xs << c;
                }
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to