]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.C
Just some changes to be able to change TabularFeatures with the Table menu
[lyx.git] / src / insets / insetspecialchar.C
index 8caa469bfebcb8ef3c215c006d2fd9843b1d9c83..ae93b68d869a87a21ef747101d4dd99f74a7ea44 100644 (file)
@@ -150,7 +150,9 @@ void InsetSpecialChar::Write(ostream & os) const
        case LDOTS:             command = "\\ldots{}";  break;
        case MENU_SEPARATOR:    command = "\\menuseparator"; break;
        case PROTECTED_SEPARATOR:
-                               command = "\\protected_separator";          break;
+               //command = "\\protected_separator";
+               command = "~";
+               break;
        }
        os << "\\SpecialChar " << command << "\n";
 }
@@ -170,7 +172,8 @@ void InsetSpecialChar::Read(LyXLex & lex)
                kind = LDOTS;
        else if (command == "\\menuseparator")
                kind = MENU_SEPARATOR;
-       else if (command == "\\protected_separator")
+       else if (command == "\\protected_separator"
+                || command == "~")
                kind = PROTECTED_SEPARATOR;
        else
                lex.printError("InsetSpecialChar: Unknown kind: `$$Token'");