summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-18 16:03:33 +0200
committerJonas Smedegaard <dr@jones.dk>2013-10-13 00:47:52 +0200
commitb6f9bc3f05a2879a3632df226340646cd5f75ee4 (patch)
tree04150b3724bfc79296151b2ac8374463cbb18f10
parent340e00505b1caa473a632a6501eba6a93cac04db (diff)
Fix preserve forced newline in po4a Text module.
-rw-r--r--Locale/Po4a/Text.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Locale/Po4a/Text.pm b/Locale/Po4a/Text.pm
index 8f703c8..bbb78af 100644
--- a/Locale/Po4a/Text.pm
+++ b/Locale/Po4a/Text.pm
@@ -651,6 +651,7 @@ sub parse {
or $paragraph =~ /^\$(\S+[{}]\S*\s*)+/ms # Xapian macro
or $paragraph =~ /<(?![a-z]+[:@])/ms # maybe html (tags but not wiki <URI>)
or $paragraph =~ /^[^<]+>/ms # maybe html (tag with vertical space)
+ or $paragraph =~ /\S $/ms # explicit newline
or $paragraph =~ /\[\[\!\S[^\]]+$/ms # macro begin
);
}