summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-10-15 14:57:27 +0200
committerJonas Smedegaard <dr@jones.dk>2008-10-15 14:57:27 +0200
commitf22690dd33894a991ee48976892671ddf22bf8e5 (patch)
tree325a88eb72b70ad4cef7d7a877c024e4a1c55a9a
parent51afefde8433ba2793497e62fc555f093ced4b53 (diff)
parentb4fa3588d8e9fe4ab98c500f3e5a4469e0613026 (diff)
Merge branch '_nb' into nb
-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
);
}