mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Minor changes to allow colspec numbering
Docs/Support/colspec-fix.pl: Added code snippet to handle colspec numbering BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
This commit is contained in:
@ -48,3 +48,4 @@ venu@work.mysql.com
|
|||||||
zak@linux.local
|
zak@linux.local
|
||||||
jcole@mugatu.spaceapes.com
|
jcole@mugatu.spaceapes.com
|
||||||
arjen@fred.bitbike.com
|
arjen@fred.bitbike.com
|
||||||
|
zak@balfor.local
|
||||||
|
@ -29,7 +29,8 @@ sub msg {
|
|||||||
|
|
||||||
sub rel2abs {
|
sub rel2abs {
|
||||||
my $str = shift;
|
my $str = shift;
|
||||||
|
my $colnum = 1;
|
||||||
|
|
||||||
my @widths = ();
|
my @widths = ();
|
||||||
my $total = 0;
|
my $total = 0;
|
||||||
my $output = '';
|
my $output = '';
|
||||||
@ -45,7 +46,8 @@ sub rel2abs {
|
|||||||
my $unit = ($table_width - ($#widths * $gutter_width)) / ($total);
|
my $unit = ($table_width - ($#widths * $gutter_width)) / ($total);
|
||||||
|
|
||||||
foreach (@widths) {
|
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";
|
return $output . "\n$ws";
|
||||||
|
Reference in New Issue
Block a user