diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-05-31 09:26:17 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-05-31 09:26:48 +0200 |
commit | e03ed20efd2cf21bc0e6225c7304d50a4d8e42b1 (patch) | |
tree | 7d547ddf4a5e15fcfeecfd1fcb56f180654a485a /Locale | |
parent | dd291b3b5f4ce8f0d884a62881f6ea024a2029cc (diff) |
Fix po4a: Only strip fortune comment in fortunes mode.
Diffstat (limited to 'Locale')
-rw-r--r-- | Locale/Po4a/Text.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Locale/Po4a/Text.pm b/Locale/Po4a/Text.pm index 0b0ca70..0edb376 100644 --- a/Locale/Po4a/Text.pm +++ b/Locale/Po4a/Text.pm @@ -192,7 +192,9 @@ sub parse { # paragraph $wrapped_mode = 0; } - $line =~ s/%%(.*)$//; + if ($fortunes) { + $line =~ s/%%(.*)$//; + } # TODO: comments $paragraph .= $line."\n"; } |