X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/7ca324def543ca2f026a348812569e874cab6c34..e20a73e69afd8061db197eb607700ce66ac70552:/Shiar_Sheet/FormatChar.pm diff --git a/Shiar_Sheet/FormatChar.pm b/Shiar_Sheet/FormatChar.pm index b2e4d09..9a00276 100644 --- a/Shiar_Sheet/FormatChar.pm +++ b/Shiar_Sheet/FormatChar.pm @@ -248,10 +248,12 @@ sub table { my @colheads; while ($digraphs->[0] !~ /^\./) { my $cell = shift @$digraphs or last; - push @colheads, sprintf( - '<%s%s>%s', + push @colheads, join('', + '<', $cell =~ s/^-// ? 'td' : 'th', - $cell =~ s/:(.*)// ? qq{ title="$1"} : '', + $cell =~ s/:(.*)// && qq{ title="$1"}, + $cell =~ s/^>// && ' colspan=2', + '>', $cell eq '_' ? ' ' : $cell ); }