diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-10-14 17:13:30 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2013-10-13 00:47:51 +0200 |
commit | 0d6ad3e28e389137c015620967edf02c309350a5 (patch) | |
tree | 60a8a7c97bc52ef45f7327b67f99395a47d28858 /Locale | |
parent | a0dc8b28a2b6bedec23869352309d03afeadc8d6 (diff) |
Ignore <URL> from html detection in po4a plugin.
Diffstat (limited to 'Locale')
-rw-r--r-- | Locale/Po4a/Text.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Locale/Po4a/Text.pm b/Locale/Po4a/Text.pm index 3ceeec9..ee56046 100644 --- a/Locale/Po4a/Text.pm +++ b/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 ); } |