X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetSpace.cpp;h=90d171e2d40570c6330fd308565d115735d243f0;hb=3934f4a36f0402612206cfc0abe0b0b62166214b;hp=c516b137ee8cb0ab312631de53f326e74e5e7317;hpb=97de79f4125bbaf578c77bd0d284628f6cecb413;p=lyx.git diff --git a/src/insets/InsetSpace.cpp b/src/insets/InsetSpace.cpp index c516b137ee..90d171e2d4 100644 --- a/src/insets/InsetSpace.cpp +++ b/src/insets/InsetSpace.cpp @@ -646,9 +646,17 @@ int InsetSpace::plaintext(odocstream & os, OutputParams const &) const case InsetSpaceParams::DOWNBRACEFILL: os << "/-^-\\"; return 5; + case InsetSpaceParams::VISIBLE: + os.put(0x2423); + return 1; case InsetSpaceParams::ENSKIP: os.put(0x2002); return 1; + case InsetSpaceParams::ENSPACE: + os.put(0x2060); // WORD JOINER, makes the breakable en space unbreakable + os.put(0x2002); + os.put(0x2060); // WORD JOINER, makes the breakable en space unbreakable + return 3; case InsetSpaceParams::QUAD: os.put(0x2003); return 1; @@ -738,20 +746,27 @@ docstring InsetSpace::xhtml(XHTMLStream & xs, OutputParams const &) const output = " "; break; case InsetSpaceParams::ENSKIP: - case InsetSpaceParams::ENSPACE: output =" "; break; + case InsetSpaceParams::ENSPACE: + output ="⁠ ⁠"; + break; case InsetSpaceParams::QQUAD: - output =" "; + output ="  "; + break; case InsetSpaceParams::THICK: + output =" "; + break; case InsetSpaceParams::QUAD: output =" "; break; + case InsetSpaceParams::MEDIUM: + output =" "; + break; case InsetSpaceParams::THIN: output =" "; break; case InsetSpaceParams::PROTECTED: - case InsetSpaceParams::MEDIUM: case InsetSpaceParams::NEGTHIN: case InsetSpaceParams::NEGMEDIUM: case InsetSpaceParams::NEGTHICK: @@ -773,9 +788,13 @@ docstring InsetSpace::xhtml(XHTMLStream & xs, OutputParams const &) const // Can we do anything with those in HTML? break; case InsetSpaceParams::CUSTOM: + // FIXME XHTML + // Probably we could do some sort of blank span? + break; case InsetSpaceParams::CUSTOM_PROTECTED: // FIXME XHTML // Probably we could do some sort of blank span? + output =" "; break; } // don't escape the entities! @@ -818,9 +837,9 @@ bool InsetSpace::isStretchableSpace() const } -docstring InsetSpace::contextMenuName() const +string InsetSpace::contextMenuName() const { - return from_ascii("context-space"); + return "context-space"; }