]> git.deb.at Git - deb/packages.git/commitdiff
debtags-xgettext: Correctly preserve linebreaks in verbatim lines
authorFrank Lichtenheld <frank@lichtenheld.de>
Thu, 21 Aug 2008 13:01:22 +0000 (15:01 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Thu, 21 Aug 2008 13:01:22 +0000 (15:01 +0200)
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.

bin/debtags-xgettext

index 329288b00ab6341bc49c7887fdd9ee9fdc08fbb3..91111840870064d6e3c26c1ce0ef0d6c2de010ba 100755 (executable)
@@ -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;