From fbcb060f12670b7fe6227be357e495d99e8a20ab Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Sun, 16 Aug 2015 16:33:18 +0200 Subject: [PATCH] Omit space before units starting with a slash. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - VERBESSERUNG: Einheiten, die mit einem Schrägstrich beginnen, werden nicht mehr mit Leerzeichen vom Wert getrennt. --- zaaReloaded2/Formatter/ItemFormatter.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zaaReloaded2/Formatter/ItemFormatter.cs b/zaaReloaded2/Formatter/ItemFormatter.cs index e7dc4dc..4f6f1d7 100755 --- a/zaaReloaded2/Formatter/ItemFormatter.cs +++ b/zaaReloaded2/Formatter/ItemFormatter.cs @@ -132,7 +132,8 @@ namespace zaaReloaded2.Formatter string unit; if (LabItem.HasUnit) { - unit = String.Format(" {0}", LabItem.Unit); + string space = LabItem.Unit.StartsWith("/") ? String.Empty : " "; + unit = String.Format("{0}{1}", space, LabItem.Unit); } else {