]> git.deb.at Git - deb/packages.git/blobdiff - bin/debtags-xgettext
debtags-xgettext: Correctly preserve linebreaks in verbatim lines
[deb/packages.git] / 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;