X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/4b706245ccc750e5573cbc3fc267a210fbf7900f..af47a19add81fd8fe81cc138b03080389d74cb52:/Shiar_Sheet/FormatChar.pm diff --git a/Shiar_Sheet/FormatChar.pm b/Shiar_Sheet/FormatChar.pm index ee0c310..834b71b 100644 --- a/Shiar_Sheet/FormatChar.pm +++ b/Shiar_Sheet/FormatChar.pm @@ -181,10 +181,12 @@ sub cell { } } - return sprintf('%s%s', - defined $title ? qq{ title="$title"} : '', - @class ? sprintf(' class="%s"', join ' ', @class) : '', - $html || '', + return sprintf('<%s>%s%s', + join(' ', 'td', + defined $title ? qq{ title="$title"} : (), + @class ? sprintf('class="%s"', join ' ', @class) : (), + $html || (), + ), $cell eq '' ? ' ' : $cell, $anno, ); @@ -225,9 +227,13 @@ sub table { $colspan++; next; } + elsif ($cell eq '>-') { + $rows[-1] .= ''; + next; + } $rows[-1] .= $self->cell($cell, - $colspan > 1 && qq{ colspan="$colspan"}, + $colspan > 1 && qq{colspan="$colspan"}, ); $colspan = 1;