Browse Source

* fix warnings

master
Zubrikhin Alexey 10 years ago
parent
commit
54128f3798
  1. 8
      lib/Text/Dokuwiki.pm

8
lib/Text/Dokuwiki.pm

@ -36,7 +36,7 @@ sub parse {
} else { } else {
push @{ $tree }, [code => {class => $attrs->{class}}, 0 => $buf]; push @{ $tree }, [code => {class => $attrs->{class}}, 0 => $buf];
} }
($buf, $attrs, $mode) = ('', {}, undef); next; ($buf, $mode, $attrs) = ('', '', {}); next;
} }
$buf .= $line . "\n"; $buf .= $line . "\n";
} }
@ -45,7 +45,7 @@ sub parse {
$buf .= $line . "\n"; next; $buf .= $line . "\n"; next;
} else { } else {
push @{ $tree }, [pre => {}, 0 => $buf]; push @{ $tree }, [pre => {}, 0 => $buf];
($buf, $attrs, $mode) = ('', {}, undef); continue; ($buf, $mode, $attrs) = ('', '', {}); continue;
} }
} }
when ("list") { when ("list") {
@ -54,7 +54,7 @@ sub parse {
next; next;
} else { } else {
push @{ $tree }, [ul => {}, @$buf]; # TODO: lost list type push @{ $tree }, [ul => {}, @$buf]; # TODO: lost list type
($buf, $attrs, $mode) = ('', {}, undef); continue; ($buf, $mode, $attrs) = ('', '', {}); continue;
} }
} }
when ("table") { when ("table") {
@ -115,7 +115,7 @@ sub parse {
# empty lines; # empty lines;
when (m/^\s*$/) { when (m/^\s*$/) {
push @{ $tree }, [br => {}]; push @{ $tree }, [br => {}];
$mode = undef; $mode = '';
next; next;
} }
# catchall # catchall

Loading…
Cancel
Save