]> git.lyx.org Git - features.git/commitdiff
Fix bug #11432.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 4 Jan 2019 00:12:58 +0000 (19:12 -0500)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:54 +0000 (14:39 +0200)
Take account of Layout::free_spacing.

src/Paragraph.cpp

index 5bad896dfdf4e13f0a09bc9d1597e52290332e16..d1197e639e360981e31a4d3b03fdb2e976912d35 100644 (file)
@@ -3409,7 +3409,10 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
                } else {
                        char_type c = getUChar(buf.masterBuffer()->params(),
                                               runparams, i);
-                       xs << c;
+                       if (c == ' ' && style.free_spacing)
+                               xs << XHTMLStream::ESCAPE_NONE << "&nbsp;";
+                       else
+                               xs << c;
                }
                font_old = font.fontInfo();
        }