- plain ASCII text please, not much more than 70 chars per column
-----------------------------------------------------------------------
-
-- \matrm{xy} gets written as \mathrm{x}\mathrm{y}
-
Dekel:
-- LyX crashes when you define a recursive macro
-
-pp - It is possible to put two or more consecutive spaces in math text mode
-
- InsetFormula::validate is broken
- Some math symbols aren't very well supported (to my knowledge). I'm
thinking of [] options.
-Herbert Voss:
-
-- it's not possible to enter superscript when the
- ^-char works as a dead key. with the second ^-
- or the space the cursor jumps outside the mathbox.
-
-
Jules Bean:
a) If something's easy & quick in LaTeX then it should be easy & quick in
MathScriptInset * p = array()[i].nucleus()->asScriptInset();
if (p) {
p->removeEmptyScripts();
- //if (p->empty())
- // array().erase(i);
+ if (!p->hasUp() && !p->hasDown() && p->nuc().size() == 1)
+ array()[i] = p->nuc()[0];
}
}
}
using std::ostream;
using std::strlen;
+namespace {
+
+ bool isAlpha(char c)
+ {
+ return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z');
+ }
+
+}
WriteStream::WriteStream(ostream & os, bool fragile, bool latex)
: os_(os), fragile_(fragile), firstitem_(false), latex_(latex),
WriteStream & operator<<(WriteStream & ws, char c)
{
if (ws.pendingSpace()) {
- if (isalpha(c))
+ if (isAlpha(c))
ws.os() << ' ';
ws.pendingSpace(false);
}
++cellcol;
//lyxerr << " column now " << cellcol << " max: " << grid.ncols() << "\n";
if (cellcol == grid.ncols()) {
- lyxerr << "adding column " << cellcol << "\n";
+ //lyxerr << "adding column " << cellcol << "\n";
grid.addCol(cellcol - 1);
}
cell = &grid.cell(grid.index(cellrow, cellcol));
for (int i = 0; i < cols; ++i) {
++cellcol;
if (cellcol == grid.ncols()) {
- lyxerr << "adding column " << cellcol << "\n";
+ //lyxerr << "adding column " << cellcol << "\n";
grid.addCol(cellcol - 1);
}
cell = &grid.cell(grid.index(cellrow, cellcol));