aboutsummaryrefslogtreecommitdiff
path: root/bin/debtags-xgettext
diff options
context:
space:
mode:
Diffstat (limited to 'bin/debtags-xgettext')
-rwxr-xr-xbin/debtags-xgettext4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/debtags-xgettext b/bin/debtags-xgettext
index a7f718b..329288b 100755
--- a/bin/debtags-xgettext
+++ b/bin/debtags-xgettext
@@ -18,7 +18,8 @@ sub escape {
my $text = shift;
$text =~ s/\\/\\\\/g;
$text =~ s/"/\\"/g;
- $text =~ s/\n/\\n/g;
+ $text =~ s/\n\s*\.\n\s?/\\n/g;
+ $text =~ s/\n//g;
$text =~ s/\t/\\t/g;
return $text;
}
@@ -59,6 +60,7 @@ sub processFile {
if ($long) {
$long = escape($long);
+ $long =~ s/^\s//;
push (@msgids, $long);
push (@{$messages->{$long}}, $comment.", long desc", $file);
}