Home › Forums › DITA and XMetaL Discussion › Default column widths in tables › Reply To: Default column widths in tables
Reply to: Default column widths in tables
February 14, 2012 at 10:28 pmIf you are really interested in pursuing this, a macro containing the following would probably do it.
The problem (as noted previously) would be locating an event where it will not conflict with DITA functionality (and that officially making such changes is unsupported).
//XMetaL Script Language JScript:
var rng = ActiveDocument.Range;
rng.MoveToDocumentStart();
while(rng.MoveToElement("colspec")) {
if(rng.ContainerAttribute("colwidth") == "*") {
rng.ContainerNode.removeAttribute("colwidth");
}
}