summaryrefslogtreecommitdiff
path: root/Docs/Support/colspec-fix.pl
diff options
context:
space:
mode:
authorunknown <arjen@fred.bitbike.com>2002-03-14 15:35:00 +1000
committerunknown <arjen@fred.bitbike.com>2002-03-14 15:35:00 +1000
commit2b400a5a976ff2898e81377cf0a15c375853d78c (patch)
treeae8e218f5bd905d4d6d1f9e403758f694ca822f9 /Docs/Support/colspec-fix.pl
parent16e40c295fb7a0682edea8661cd339e9b650c566 (diff)
downloadmariadb-git-2b400a5a976ff2898e81377cf0a15c375853d78c.tar.gz
Append "cm" measurement unit specifier to colwidth field.
Diffstat (limited to 'Docs/Support/colspec-fix.pl')
-rwxr-xr-xDocs/Support/colspec-fix.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/Docs/Support/colspec-fix.pl b/Docs/Support/colspec-fix.pl
index 48913d6d638..21abb90fef9 100755
--- a/Docs/Support/colspec-fix.pl
+++ b/Docs/Support/colspec-fix.pl
@@ -4,6 +4,8 @@
# Script to rewrite colspecs from relative values to absolute values
#
+# arjen 2002-03-14 append "cm" specifier to colwidth field.
+
use strict;
my $table_width = 12.75; # cm
@@ -43,7 +45,7 @@ sub rel2abs {
my $unit = ($table_width - ($#widths * $gutter_width)) / ($total);
foreach (@widths) {
- $output .= $ws . '<colspec colwidth="'. sprintf ("%0.2f", $_ * $unit) .'" />' . "\n";
+ $output .= $ws . '<colspec colwidth="'. sprintf ("%0.2f", $_ * $unit) .'cm" />' . "\n";
}
return $output . "\n$ws";