diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2008-10-01 20:48:57 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2008-10-01 20:48:57 +0200 |
| commit | 6fb5104141b1c9936b847f8d2b25f024560421db (patch) | |
| tree | 75c6c9f84fa20cbd27b185ccb3fd000d0592075e | |
| parent | f2ddf72b26f2f6d318f41264573787f505339b8e (diff) | |
Separate markdown and wrap rules in po4a plugin.
| -rw-r--r-- | perl/Locale/Po4a/Text.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl/Locale/Po4a/Text.pm b/perl/Locale/Po4a/Text.pm index 0cc2cc8..3ceeec9 100644 --- a/perl/Locale/Po4a/Text.pm +++ b/perl/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 |
