]> git.lyx.org Git - features.git/commitdiff
THINSPACE is nonbreakable (i.e., 0x202f, not 0x2009)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 17 Jul 2023 15:14:50 +0000 (17:14 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 17 Jul 2023 15:14:50 +0000 (17:14 +0200)
src/insets/InsetSpace.cpp
src/mathed/InsetMathSpace.cpp

index 14db93fe55739fd8ec2d75c69e0d1dbf0b289c56..0e0b9b6aacb598158570418d1b985fff9ad017d9 100644 (file)
@@ -603,7 +603,7 @@ void InsetSpace::latex(otexstream & os, OutputParams const & runparams) const
                break;
        case InsetSpaceParams::THIN:
                if (runparams.find_effective())
-                       os.put(0x2009);
+                       os.put(0x202f);
                else
                        os << (runparams.free_spacing ? " " : "\\,");
                break;
@@ -798,7 +798,7 @@ std::string spaceToXMLEntity(InsetSpaceParams::Kind kind) {
        case InsetSpaceParams::ENSPACE: // HTML: &#x2060;&ensp;&#x2060; (word joiners)
                return "&#x2060;&#x2002;&#x2060;";
        case InsetSpaceParams::THIN:
-               return "&#x2009;"; // HTML: &thinspace;
+               return "&#x202F;"; // HTML: &thinspace;
        case InsetSpaceParams::MEDIUM:
                return "&#x2005;"; // HTML: &emsp14;
        case InsetSpaceParams::THICK:
index f507592eb969f608984402fdda1c0578014ed773..140e97e06b4025a7f7d8b0a5377132dab8ba9d26 100644 (file)
@@ -219,7 +219,7 @@ void InsetMathSpace::htmlize(HtmlStream & ms) const
        SpaceInfo const & si = space_info[space_];
        switch (si.kind) {
        case InsetSpaceParams::THIN:
-               ms << from_ascii("&#x2009;"); // HTML: &thinsp;
+               ms << from_ascii("&#x202F;"); // HTML: &thinsp;
                break;
        case InsetSpaceParams::MEDIUM:
                ms << from_ascii("&#160;");