From a0dc8b28a2b6bedec23869352309d03afeadc8d6 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 1 Oct 2008 20:48:57 +0200 Subject: Separate markdown and wrap rules in po4a plugin. --- Locale/Po4a/Text.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Locale/Po4a/Text.pm b/Locale/Po4a/Text.pm index 0cc2cc8..3ceeec9 100644 --- a/Locale/Po4a/Text.pm +++ b/Locale/Po4a/Text.pm @@ -220,7 +220,8 @@ sub parse { # A line starting by a space indicates a non-wrap # paragraph $wrapped_mode = 0; - } elsif ($markdown and + } + if ($markdown and ( $line =~ /\S $/ # explicit newline or $line =~ /"""$/)) { # """ textblock inside macro begin # Markdown markup needing separation _after_ this line -- cgit v1.2.3