diff options
author | zak@balfor.local <> | 2002-03-16 16:18:49 -0700 |
---|---|---|
committer | zak@balfor.local <> | 2002-03-16 16:18:49 -0700 |
commit | 9a6cd145a587760563a6c76696215c958d023158 (patch) | |
tree | d19664e925e24fc941b638acd93c784d59662dbf /Docs/Support | |
parent | 672e42ca93b9d5f3421dcbe2a424ee674e35e0d1 (diff) | |
download | mariadb-git-9a6cd145a587760563a6c76696215c958d023158.tar.gz |
Minor changes to allow colspec numbering
Diffstat (limited to 'Docs/Support')
-rwxr-xr-x | Docs/Support/colspec-fix.pl | 6 |
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"; |