Browse Source

* Text::Dokuwiki::Parser->_parse_text : handle force newline

master
Alex 'AdUser' Z 10 years ago
parent
commit
549758b23b
  1. 4
      lib/Text/Dokuwiki/Parser.pm

4
lib/Text/Dokuwiki/Parser.pm

@ -165,7 +165,7 @@ sub _parse_text {
my @parts = ();
while ($line) {
$line =~ m!^(?:(.*?)(__|//|''|\*\*|\[\[|\{\{|\(\())?(.*)!o;
$line =~ m!^(?:(.*?)(__|//|''|\*\*|\[\[|\{\{|\(\(|\\\\ ))?(.*)!o;
my ($before, $match, $after) = ($1, $2, $3);
if ($before) {
push @parts, $before;
@ -178,7 +178,7 @@ sub _parse_text {
}
given ($match) {
when ('\\ ') { # force newline
when ('\\\\ ') { # force newline
push @parts, [br => {}];
$line = $after;
next;

Loading…
Cancel
Save