From 4fe41c68b3bd2457f06e53fc529b42c1a67e2a6d Mon Sep 17 00:00:00 2001 From: Gerfried Fuchs Date: Mon, 2 Aug 2010 13:02:32 +0200 Subject: [PATCH] add indentation to reason for 822 format The Reason: for a remove can span multiple lines. This means they need to be prefixed with whitespace to not break the rfc822 format. Signed-off-by: Gerfried Fuchs --- dak/rm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dak/rm.py b/dak/rm.py index 2bd96eec..f63b2ca6 100755 --- a/dak/rm.py +++ b/dak/rm.py @@ -530,7 +530,7 @@ def main (): logfile822.write("Binaries:\n") for binary in binaries: logfile822.write(" %s\n" % binary) - logfile822.write("Reason: %s\n" % Options["Reason"]) + logfile822.write("Reason: %s\n" % Options["Reason"].replace('\n', '\n ')) if Options["Done"]: logfile822.write("Bug: %s\n" % Options["Done"]) logfile822.write("\n") -- 2.39.5