diff --git a/Host/status.htm b/Host/status.htm
index 0027ac113..84754af5b 100644
--- a/Host/status.htm
+++ b/Host/status.htm
@@ -41,6 +41,10 @@
th {
background: #eee;
}
+
+ .msg {
+ white-space: pre-wrap;
+ }
@@ -119,7 +123,7 @@
rows += ''
+ '| ' + esc(svc.Name) + ' | '
+ '' + symbol + ' | '
- + '' + esc(svc.Message) + ' | '
+ + '' + esc(svc.Message) + ' | '
+ '
';
}
document.getElementById('services').innerHTML = rows;
diff --git a/Service/Status/BaseStatusService.cs b/Service/Status/BaseStatusService.cs
index db9af14d4..027c41fd8 100644
--- a/Service/Status/BaseStatusService.cs
+++ b/Service/Status/BaseStatusService.cs
@@ -13,6 +13,8 @@ namespace BeWo.Service.Status
{
private static readonly log4net.ILog log = LoggerUtils.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+ private readonly string joinChar = Environment.NewLine;
+
protected string Name { get; set; }
protected List> Checkups { get; } = new List>();
@@ -81,7 +83,7 @@ namespace BeWo.Service.Status
{
Name = Name,
IsOk = errors.Count == 0,
- Message = errors.Count == 0 ? "OK" : string.Join("; ", errors)
+ Message = errors.Count == 0 ? "OK" : string.Join(joinChar, errors)
};
}
@@ -91,7 +93,7 @@ namespace BeWo.Service.Status
.Where(x => string.IsNullOrWhiteSpace(MergedConfig.GetSetting(x)))
.Select(x => $"'{x}' wurde nicht korrekt konfiguriert");
- return string.Join("; ", missing);
+ return string.Join(joinChar, missing);
}
private string CheckWebSecretConfig()
@@ -100,7 +102,7 @@ namespace BeWo.Service.Status
.Where(x => string.IsNullOrWhiteSpace(MergedConfig.GetSecretSetting(x)))
.Select(x => $"'{x}' wurde nicht korrekt konfiguriert");
- return string.Join("; ", missing);
+ return string.Join(joinChar, missing);
}
private string CheckDBScripts()
@@ -109,7 +111,7 @@ namespace BeWo.Service.Status
.Where(x => !DAOFactory.ScriptDAO.IsScriptExecuted(x))
.Select(x => $"Script '{x}' wurde nicht ausgeführt");
- return string.Join("; ", missing);
+ return string.Join(joinChar, missing);
}
private string CheckConfig()
@@ -118,7 +120,7 @@ namespace BeWo.Service.Status
.Where(x => !File.Exists(ConfigReader.GetConfigPath(x)))
.Select(x => $"SpecialConfig.{x} wurde nicht korrekt konfiguriert");
- return string.Join("; ", missing);
+ return string.Join(joinChar, missing);
}
}
}