diff --git a/XenAdmin/Core/ExtensionMethods.cs b/XenAdmin/Core/ExtensionMethods.cs index c187d83f8..4bd68644f 100644 --- a/XenAdmin/Core/ExtensionMethods.cs +++ b/XenAdmin/Core/ExtensionMethods.cs @@ -164,7 +164,14 @@ namespace XenAdmin.Core var timestampString = HelpersGUI.DateTimeToString(timestamp, Messages.DATEFORMAT_DM_HMS, localize); // normalise all line endings before splitting var lines = value.Replace(Environment.NewLine, "\n").Split('\n'); - return string.Join(Environment.NewLine, lines.Select(line => $"{timestampString} | {line}")); + return string.Join(Environment.NewLine, lines.Select(line => + { + if (string.IsNullOrWhiteSpace(line)) + { + return line; + } + return $"{timestampString} | {line}"; + })); } } }