summaryrefslogtreecommitdiff
path: root/Docs/Support
diff options
context:
space:
mode:
authorzak@balfor.local <>2002-03-16 16:18:49 -0700
committerzak@balfor.local <>2002-03-16 16:18:49 -0700
commit9a6cd145a587760563a6c76696215c958d023158 (patch)
treed19664e925e24fc941b638acd93c784d59662dbf /Docs/Support
parent672e42ca93b9d5f3421dcbe2a424ee674e35e0d1 (diff)
downloadmariadb-git-9a6cd145a587760563a6c76696215c958d023158.tar.gz
Minor changes to allow colspec numbering
Diffstat (limited to 'Docs/Support')
-rwxr-xr-xDocs/Support/colspec-fix.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/Docs/Support/colspec-fix.pl b/Docs/Support/colspec-fix.pl
index 21abb90fef9..64269fdbe3a 100755
--- a/Docs/Support/colspec-fix.pl
+++ b/Docs/Support/colspec-fix.pl
@@ -29,7 +29,8 @@ sub msg {
sub rel2abs {
my $str = shift;
-
+ my $colnum = 1;
+
my @widths = ();
my $total = 0;
my $output = '';
@@ -45,7 +46,8 @@ sub rel2abs {
my $unit = ($table_width - ($#widths * $gutter_width)) / ($total);
foreach (@widths) {
- $output .= $ws . '<colspec colwidth="'. sprintf ("%0.2f", $_ * $unit) .'cm" />' . "\n";
+ $output .= $ws . '<colspec colnum="'. $colnum .'" colwidth="'. sprintf ("%0.2f", $_ * $unit) .'cm" />' . "\n";
+ ++$colnum;
}
return $output . "\n$ws";