Mercurial > mxd2map
comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 199:c56547b228f9
Remove leading and trailing whitespaces from labelitem.
author | raimund renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 20 Jul 2011 18:22:59 +0200 |
parents | cdbf2f2dca35 |
children | ecf2f68230a2 |
comparison
equal
deleted
inserted
replaced
197:cdbf2f2dca35 | 199:c56547b228f9 |
---|---|
325 expr = expr.replaceAll("\\[", ""); | 325 expr = expr.replaceAll("\\[", ""); |
326 expr = expr.replaceAll("\\]", ""); | 326 expr = expr.replaceAll("\\]", ""); |
327 if(!prefix.equals("")) { | 327 if(!prefix.equals("")) { |
328 expr = prefix + "." + expr; | 328 expr = prefix + "." + expr; |
329 } | 329 } |
330 layer.setLabelitem(expr); | 330 layer.setLabelitem(expr.trim()); |
331 } | 331 } |
332 | 332 |
333 //Write classes. | 333 //Write classes. |
334 writeClass(layer, layerElement); | 334 writeClass(layer, layerElement); |
335 } | 335 } |