changeset 6235:c2c5ac7c1743

Bedheight parser: handle whitespace in metaline
author Tom Gottfried <tom.gottfried@intevation.de>
date Fri, 07 Jun 2013 17:52:10 +0200
parents 02ea1c3fba8c
children 52d4175cb331
files backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightParser.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightParser.java	Fri Jun 07 17:09:26 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightParser.java	Fri Jun 07 17:52:10 2013 +0200
@@ -345,7 +345,7 @@
         Matcher m = META_TYPE.matcher(line);
 
         if (m.matches()) {
-            String tmp = m.group(1).replace(";", "");
+            String tmp = m.group(1).replace(";", "").trim();
 
             BedHeightType bht = BedHeightType.fetchBedHeightTypeForType(
 		tmp, ImporterSession.getInstance().getDatabaseSession());

http://dive4elements.wald.intevation.org