Fix a problem with frames when rowlines or columnlines are not defined (introduced by the change that added menclose for handling partial frames in tables)

This commit is contained in:
Davide P. Cervone 2011-10-25 19:02:54 -04:00
parent e030b97288
commit 1d5c0e1750
8 changed files with 10 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -244,10 +244,10 @@
mml.frame = (this.frame.dashed ? "dashed" : "solid");
} else if (this.frame.length) {
mml.hasFrame = true;
this.arraydef.rowlines = this.arraydef.rowlines.replace(/none( none)+$/,"none");
if (this.arraydef.rowlines) {this.arraydef.rowlines = this.arraydef.rowlines.replace(/none( none)+$/,"none")}
mml = MML.menclose(mml).With({notation: this.frame.join(" "), isFrame: true});
if (this.arraydef.columnlines != "none" ||
this.arraydef.rowlines != "none") {mml.padding = 0} // HTML-CSS jax implements this
if ((this.arraydef.columnlines||"none") != "none" ||
(this.arraydef.rowlines||"none") != "none") {mml.padding = 0} // HTML-CSS jax implements this
}
if (this.open || this.close) {
mml = MML.mfenced(mml).With({open: this.open, close: this.close});