[Po4a-commits] r2292 - /trunk/lib/Locale/Po4a/Text.pm

js at users.alioth.debian.org js at users.alioth.debian.org
Mon Oct 18 20:10:50 UTC 2010


Author: js
Date: Mon Oct 18 20:10:41 2010
New Revision: 2292

URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2292
Log:
Fix preserve force-break (trailing space) in markdown mode of Text module.

Modified:
    trunk/lib/Locale/Po4a/Text.pm

Modified: trunk/lib/Locale/Po4a/Text.pm
URL: http://svn.debian.org/wsvn/po4a/trunk/lib/Locale/Po4a/Text.pm?rev=2292&op=diff
==============================================================================
--- trunk/lib/Locale/Po4a/Text.pm (original)
+++ trunk/lib/Locale/Po4a/Text.pm Mon Oct 18 20:10:41 2010
@@ -652,6 +652,7 @@
                 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
             );
         }




More information about the Po4a-commits mailing list