aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-01-13 07:44:46 +0100
committerBananeweizen <bananeweizen@gmx.de>2014-01-13 07:44:46 +0100
commit49171aeb7c87dc198cf3f1d2010047f17c567a79 (patch)
tree9568d5a1a58e30ade096e1c90d763c02d9cede7e
parent95a511bd69483c716323fcc3c3d59136e214176e (diff)
downloadcgeo-49171aeb7c87dc198cf3f1d2010047f17c567a79.zip
cgeo-49171aeb7c87dc198cf3f1d2010047f17c567a79.tar.gz
cgeo-49171aeb7c87dc198cf3f1d2010047f17c567a79.tar.bz2
trim OX short description
-rw-r--r--main/src/cgeo/geocaching/connector/ox/OXGPXParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/connector/ox/OXGPXParser.java b/main/src/cgeo/geocaching/connector/ox/OXGPXParser.java
index f72b698..5f11a11 100644
--- a/main/src/cgeo/geocaching/connector/ox/OXGPXParser.java
+++ b/main/src/cgeo/geocaching/connector/ox/OXGPXParser.java
@@ -28,10 +28,10 @@ public class OXGPXParser extends GPX10Parser {
/**
* The short description of OX caches contains "title by owner, type(T/D/Awesomeness)". That is a lot of
* duplication.
- *
+ *
* @param cache
*/
private static void removeTitleFromShortDescription(final @NonNull Geocache cache) {
- cache.setShortDescription(StringUtils.substringAfterLast(cache.getShortDescription(), ","));
+ cache.setShortDescription(StringUtils.trim(StringUtils.substringAfterLast(cache.getShortDescription(), ",")));
}
}