From: Reino Ruusu Date: Fri, 18 Sep 2020 14:20:40 +0000 (+0300) Subject: Trim whitespace from tech type table data X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=f22bbc96f958a1325cf3e7b669c3db0072c267be;p=simantics%2Fdistrict.git Trim whitespace from tech type table data gitlab #93 Change-Id: I72cf316d3e99b35fdfa12e404e62a41a3e1858cf --- diff --git a/org.simantics.district.network/src/org/simantics/district/network/techtype/requests/TechTypeTableData.java b/org.simantics.district.network/src/org/simantics/district/network/techtype/requests/TechTypeTableData.java index 4afe5bde..cbedd1ac 100644 --- a/org.simantics.district.network/src/org/simantics/district/network/techtype/requests/TechTypeTableData.java +++ b/org.simantics.district.network/src/org/simantics/district/network/techtype/requests/TechTypeTableData.java @@ -75,7 +75,7 @@ public class TechTypeTableData extends ResourceRead v = r.iterator(); while (h.hasNext() && v.hasNext()) { - String name = h.next().intern(); - String value = v.next(); + String name = h.next().trim().intern(); + String value = v.next().trim(); valueMap.put(name, value); } }