Export ' as ’ in HTML

This is similar to what LaTeX does in its output.

See the (long) discussion in ticket #11244.
This commit is contained in:
Jean-Marc Lasgouttes 2022-07-17 19:09:22 +02:00
parent 2203078111
commit ad3e6c69b2

View 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;
}