summaryrefslogtreecommitdiff
path: root/Locale/Po4a
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-05-31 16:23:44 +0200
committerJonas Smedegaard <dr@jones.dk>2013-10-13 00:47:50 +0200
commitdc1624532d0ae2962ee3a817ed20eff631a7bc54 (patch)
treeae431e3fcda066954c3e000d5d8bf1f82cf35d82 /Locale/Po4a
parent0bba7ecd8f8d89b39c5ada631e298b5f05678b32 (diff)
Don't mark oneliners as non-wrap (and polish coding style).
Diffstat (limited to 'Locale/Po4a')
-rw-r--r--Locale/Po4a/Text.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Locale/Po4a/Text.pm b/Locale/Po4a/Text.pm
index eb8ded9..2f9e511 100644
--- a/Locale/Po4a/Text.pm
+++ b/Locale/Po4a/Text.pm
@@ -179,9 +179,10 @@ sub parse {
or $line =~ /^\s*\[\[\!\S[^\]]*\]\]\s*$/)) { # sole macro
# Found Markdown markup that should be preserved as a single line
do_paragraph($self,$paragraph,$wrapped_mode);
- do_paragraph($self,$line."\n",0);
- $paragraph="";
+ $paragraph="$line\n";
$wrapped_mode = 1;
+ do_paragraph($self,$paragraph,$wrapped_mode);
+ $paragraph="";
} elsif ($markdown and
( $paragraph =~ m/^>/ # blockquote
or $paragraph =~ m/[<>]/ # maybe html