[LyX/master] THINSPACE is nonbreakable (i.e., 0x202f, not 0x2009)

Juergen Spitzmueller spitz at lyx.org
Mon Jul 17 14:02:15 UTC 2023


commit 999b95398d6687f06587d408b51b2c6984fde5d8
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Mon Jul 17 17:14:50 2023 +0200

    THINSPACE is nonbreakable (i.e., 0x202f, not 0x2009)
---
 src/insets/InsetSpace.cpp     |    4 ++--
 src/mathed/InsetMathSpace.cpp |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/insets/InsetSpace.cpp b/src/insets/InsetSpace.cpp
index 14db93f..0e0b9b6 100644
--- a/src/insets/InsetSpace.cpp
+++ b/src/insets/InsetSpace.cpp
@@ -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; &#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:
diff --git a/src/mathed/InsetMathSpace.cpp b/src/mathed/InsetMathSpace.cpp
index f507592..140e97e 100644
--- a/src/mathed/InsetMathSpace.cpp
+++ b/src/mathed/InsetMathSpace.cpp
@@ -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:  
+		ms << from_ascii("&#x202F;"); // HTML:  
 		break;
 	case InsetSpaceParams::MEDIUM:
 		ms << from_ascii(" ");


More information about the lyx-cvs mailing list