From 8a119ea94ecc6668797e3a1358465ef3733f3a3e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 10 Oct 2011 07:21:54 -0700 Subject: [PATCH] elog_process: add newlines for bug #386627 This fixes omission of newlines in saved messages since commit ca7bef7821876791a26a5f9df6938f4c77fe571f. --- pym/portage/elog/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pym/portage/elog/__init__.py b/pym/portage/elog/__init__.py index 1a8309dbc..eeb6e7184 100644 --- a/pym/portage/elog/__init__.py +++ b/pym/portage/elog/__init__.py @@ -52,11 +52,11 @@ def _combine_logentries(logentries): for msgtype, msgcontent in logentries[phase]: if previous_type != msgtype: previous_type = msgtype - rValue.append("%s: %s\n" % (msgtype, phase)) + rValue.append("%s: %s" % (msgtype, phase)) for line in msgcontent: - rValue.append(line) - rValue.append("\n") - return "".join(rValue) + rValue.append(line.rstrip("\n")) + rValue.append("") + return "\n".join(rValue) _elog_mod_imports = {} def _load_mod(name): -- 2.26.2