Browse Source

* fix parser

master
Zubrikhin Alexey 10 years ago
parent
commit
f64b9394b7
  1. 2
      lib/Text/Dokuwiki/Parser.pm

2
lib/Text/Dokuwiki/Parser.pm

@ -233,7 +233,7 @@ sub parse {
$linenum++; $linenum++;
if ($mode =~ m!block/(file|code|nowiki)!o) { if ($mode =~ m!block/(file|code|nowiki)!o) {
$buf //= []; $buf ||= [];
if ($line =~ m{^\s*</$1>}o) { if ($line =~ m{^\s*</$1>}o) {
$buf = join("\n", @{ $buf }); $buf = join("\n", @{ $buf });
if ($1 eq 'file') { if ($1 eq 'file') {

Loading…
Cancel
Save