+2001-08-15 Dekel Tsur <dekelts@tau.ac.il>
+
+ * lyxlex_pimpl.C (next): Treat \ as normal char if not followed by
+ " or \.
+
2001-08-16 Juergen Vigna <jug@sad.it>
* lyxfunc.C (dispatch): implemented the new FINISHED states.
void FormMathsPanel::insertSymbol(string const & sym) const
{
- lv_->getLyXFunc()->dispatch(LFUN_INSERT_MATH, sym);
+ lv_->getLyXFunc()->dispatch(LFUN_INSERT_MATH, '\\' + sym);
}
// escape the next char
is.get(cc);
c = cc;
- escaped = true;
+ if (c == '\"' || c == '\\')
+ escaped = true;
+ else
+ buff[++i] = '\\';
}
buff[++i] = c;