aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFrank Lichtenheld <frank@lichtenheld.de>2008-08-21 15:01:22 +0200
committerFrank Lichtenheld <frank@lichtenheld.de>2008-08-21 15:01:22 +0200
commitbe2f7a516d8c7348a3829720d2e41ec57e9ff2e9 (patch)
tree53da4bc2cad8353694a93e56dca4d8709423b5ed /bin
parent448d3ceacb0a26efd961f76c306d95c2cf7175c4 (diff)
debtags-xgettext: Correctly preserve linebreaks in verbatim lines
Lines starting with more than one space are special in package descriptions, so they should be here as well. Not actually used at the moment, though.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/debtags-xgettext1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/debtags-xgettext b/bin/debtags-xgettext
index 329288b..9111184 100755
--- a/bin/debtags-xgettext
+++ b/bin/debtags-xgettext
@@ -19,6 +19,7 @@ sub escape {
$text =~ s/\\/\\\\/g;
$text =~ s/"/\\"/g;
$text =~ s/\n\s*\.\n\s?/\\n/g;
+ $text =~ s/\n /\\n/g;
$text =~ s/\n//g;
$text =~ s/\t/\\t/g;
return $text;