summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-10-15 14:57:26 +0200
committerJonas Smedegaard <dr@jones.dk>2008-10-15 14:57:26 +0200
commit1e790c11d5173dec4192a542516722af04225c95 (patch)
treef8dc5107fdc534655bb1da977711011fdfa4ac2b
parent553bbc8ff83369b92962351cf06359ea9c9d109c (diff)
parent060a04f45e48ec3963beec69e8168ca41d6d324d (diff)
Merge branch '_clean' into clean
-rw-r--r--perl/Locale/Po4a/Text.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl/Locale/Po4a/Text.pm b/perl/Locale/Po4a/Text.pm
index 3ceeec9..ee56046 100644
--- a/perl/Locale/Po4a/Text.pm
+++ b/perl/Locale/Po4a/Text.pm
@@ -245,7 +245,8 @@ sub parse {
$paragraph =~ /^>/ms # blockquote
or $paragraph =~ /^( {8}|\t)/ms # monospaced
or $paragraph =~ /^\$(\S+[{}]\S*\s*)+/ms # Xapian macro
- or $paragraph =~ /[<>]/ms # maybe html
+ or $paragraph =~ /<(?![a-z]+[:@])/ms # maybe html (tags but not wiki <URI>)
+ or $paragraph =~ /^[^<]+>/ms # maybe html (tag with vertical space)
or $paragraph =~ /^\s*\[\[\!\S[^\]]+$/ms # macro begin
);
}