niceInsert(createMathInset("textbackslash"));
else
niceInsert(createMathInset("backslash"));
- } else
+ } else if (c == '{') {
+ niceInsert(MathAtom(new MathBraceInset));
+ } else {
niceInsert(createMathInset(string(1, c)));
+ }
return true;
}
}
if (c == '#') {
- insert(c); // LM_TC_TEX;
- return true;
- }
-
-/*
- if (c == '{' || c == '}', c)) {
- insert(c); // LM_TC_TEX;
- return true;
- }
-*/
-
- if (c == '{') {
- niceInsert(MathAtom(new MathBraceInset));
+ insert(c);
return true;
}
- if (c == '}') {
+ if (c == '{' || c == '}') {
+ niceInsert(createMathInset(string(1, c)));
return true;
}