OSDN Git Service

表の一番左側のセルが<<のときは結合処理を行わなずそのままセルを出力するように修正。
authortakezoe <takezoe@users.osdn.me>
Mon, 21 Nov 2011 19:23:39 +0000 (19:23 +0000)
committertakezoe <takezoe@users.osdn.me>
Mon, 21 Nov 2011 19:23:39 +0000 (19:23 +0000)
lib/Wiki/HTMLParser.pm

index 5a02124..c940446 100644 (file)
@@ -291,7 +291,7 @@ sub l_table {
        my @columns = ();
        foreach(@$row){
                my $html = join("",@$_);
-               if($html eq '&lt;&lt;'){
+               if($#columns != -1 && $html eq '&lt;&lt;'){
                        @columns[$#columns]->{colspan}++;
                } else {
                        push(@columns, {colspan => 1, html => $html});