Skip to content

Commit db76ca5

Browse files
authored
Merge pull request #1438 from Alex-Jordan/nicetable-missingcell
fully close most HTML tags in niceTables
2 parents 7d95186 + a369aff commit db76ca5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

macros/ui/niceTables.pl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,8 +1514,7 @@ sub tag {
15141514
$return .= $inner;
15151515
$return .= "$separator</$name>";
15161516
} else {
1517-
$return .= '>' unless ($main::displayMode eq 'PTX');
1518-
$return .= '/>' if ($main::displayMode eq 'PTX');
1517+
$return .= ($main::displayMode eq 'PTX') ? '/>' : $name =~ /^(br|col|hr|img|input)$/ ? '>' : "></$name>";
15191518
}
15201519
return $return;
15211520
}

0 commit comments

Comments
 (0)