From 549758b23b9d02b19754e15ed302d8a61ddb3a74 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sat, 9 May 2015 19:48:07 +1000 Subject: [PATCH] * Text::Dokuwiki::Parser->_parse_text : handle force newline --- lib/Text/Dokuwiki/Parser.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Text/Dokuwiki/Parser.pm b/lib/Text/Dokuwiki/Parser.pm index f7b3fc6..3cece54 100644 --- a/lib/Text/Dokuwiki/Parser.pm +++ b/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;