Skip to content

Commit 945912f

Browse files
authored
Merge pull request #1249 from Alex-Jordan/niceTablesBug
fix a niceTables bug
2 parents 490900f + 640abe6 commit 945912f

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

macros/ui/niceTables.pl

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ sub Row {
970970
} elsif (!$cellOpts->{halign}) {
971971
$columntype .= getLaTeXcolumnWidth($cellAlign->{right});
972972
}
973-
$cell = latexCommand('multicolumn', [ $cellOpts->{colspan}, $columntype, $cell ]);
973+
$cell = "\\multicolumn{$cellOpts->{colspan}}{$columntype}{$cell}";
974974
}
975975
$cell = suffix($cell, '&', ' ') unless ($i == $#$rowArray);
976976
push(@cells, $cell);
@@ -1456,16 +1456,6 @@ sub latexEnvironment {
14561456
return $return;
14571457
}
14581458

1459-
sub latexCommand {
1460-
my ($command, $arguments) = @_;
1461-
my $return = "\\$command";
1462-
for my $x (@$arguments) {
1463-
$return .= "{$x}" if ($x ne '');
1464-
}
1465-
$return .= " ";
1466-
return $return;
1467-
}
1468-
14691459
sub wrap {
14701460
my ($center, $left, $right, $separator) = @_;
14711461
$separator = "\n" unless (defined $separator);

0 commit comments

Comments
 (0)