Skip to content

Instantly share code, notes, and snippets.

@moluapple
Created August 9, 2011 03:04
Show Gist options
  • Save moluapple/1133311 to your computer and use it in GitHub Desktop.
Save moluapple/1133311 to your computer and use it in GitHub Desktop.
[Indesign] Table Stroke Fixer
var oTable = app.selection[0].parent.parent,
oRows = oTable.rows,
i = 0,
len = oRows.length;
for (; i < len; i++) {
oRows[i].cells[0].insertionPoints[0].endBaseline < oRows[i - 1].cells[0].insertionPoints[0].endBaseline
&& oRows[i - 1].rowSpan < 2
&& (oRows[i - 1].bottomEdgeStrokeWeight = oRows[i].topEdgeStrokeWeight = oRows[0].topEdgeStrokeWeight);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment