{
MathArray ar = dat;
extractStrings(ar);
- for (MathArray::const_iterator it = ar.begin(); it != ar.end(); ++it)
+ wi.firstitem() = true;
+ for (MathArray::const_iterator it = ar.begin(); it != ar.end(); ++it) {
(*it)->write(wi);
+ wi.firstitem() = false;
+ }
}
parse(p->cell(up), FLAG_ITEM, mathmode);
p->limits(limits);
limits = 0;
+ // special handling of {}-bases
+ // is this always correct?
+ if (p->nuc().size() == 1 && p->nuc().back()->asNestInset() &&
+ p->nuc().back()->extraBraces())
+ p->nuc() = p->nuc().back()->asNestInset()->cell(0);
}
else if (t.character() == ']' && (flags & FLAG_BRACK_LAST)) {