From: Frank Lichtenheld Date: Thu, 21 Aug 2008 13:01:22 +0000 (+0200) Subject: debtags-xgettext: Correctly preserve linebreaks in verbatim lines X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=be2f7a516d8c7348a3829720d2e41ec57e9ff2e9;p=deb%2Fpackages.git 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. --- 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;