If the table has a complete frame then use the style of the left vertical line for the frame (so dashed frames are possible)

This commit is contained in:
Davide P. Cervone 2011-10-24 22:01:57 -04:00
parent eaa02b4077
commit 9f80a1ebab
9 changed files with 16 additions and 14 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

File diff suppressed because one or more lines are too long

View File

@ -240,8 +240,10 @@
if (item.isCR) {this.EndEntry(); this.EndRow(); this.clearEnv(); return FALSE}
this.EndTable(); this.clearEnv();
var mml = MML.mtable.apply(MML,this.table).With(this.arraydef);
if (this.frame.length === 4) {mml.frame = "solid"; mml.framespacing = ".5em .5ex"}
else if (this.frame.length) {
if (this.frame.length === 4) {
mml.frame = (this.frame.dashed ? "dashed" : "solid");
mml.framespacing = ".5em .5ex";
} else if (this.frame.length) {
mml.hasFrame = true;
mml = MML.menclose(mml).With({notation: this.frame.join(" "), isFrame: true});
}
@ -1569,7 +1571,7 @@
}
});
if (lines.match(/[|:]/)) {
if (lines.charAt(0).match(/[|:]/)) {array.frame.push("left")}
if (lines.charAt(0).match(/[|:]/)) {array.frame.push("left"); array.frame.dashed = lines.charAt(0) === ":"}
if (lines.charAt(lines.length-1).match(/[|:]/)) {array.frame.push("right")}
lines = lines.substr(1,lines.length-2);
array.arraydef.columnlines =