THINSPACE is nonbreakable (i.e., 0x202f, not 0x2009)

This commit is contained in:
Juergen Spitzmueller 2023-07-17 17:14:50 +02:00
parent f6f936e3d0
commit 999b95398d
2 changed files with 3 additions and 3 deletions

View 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:

View 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;");