]> 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)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 4 Jan 2019 00:13:43 +0000 (19:13 -0500)
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();
        }