bradchoate / text-textile

Text::Textile -- Perl module for handling Textile format
20 stars 11 forks source link

Bug: colspan is added if an column is empty #17

Open j-schulz opened 9 years ago

j-schulz commented 9 years ago

This is a bug:

use Text::Textile;
my $text = '
| a | a | a |
| b |   | b |
| c | c | c |
| d |   | d |
';
print Text::Textile->new->process($text), "\n";

Output:

<table><tr><td>a</td><td>a</td><td>a</td></tr><tr><td colspan="2">b</td><td>b</td></tr><tr><td>c</td><td>c</td><td>c</td></tr><tr><td colspan="2">d</td><td>d</td></tr></table>

colspan should not be added there.