diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2015-02-15 13:42:35 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2015-02-15 13:42:35 +0100 |
commit | ccfb775f4cb0e2c68a36fc275fc28a941206125c (patch) | |
tree | 0560a336cbb03e88476062fc83a511820c5e4c7f /main/src/cgeo/geocaching/connector | |
parent | ecce9bc407f87027dd3c1d7b0e10ac74cf54c3bd (diff) | |
download | cgeo-ccfb775f4cb0e2c68a36fc275fc28a941206125c.zip cgeo-ccfb775f4cb0e2c68a36fc275fc28a941206125c.tar.gz cgeo-ccfb775f4cb0e2c68a36fc275fc28a941206125c.tar.bz2 |
remove superfluous paragraphs in opencaching logs
Diffstat (limited to 'main/src/cgeo/geocaching/connector')
-rw-r--r-- | main/src/cgeo/geocaching/connector/oc/OkapiClient.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/connector/oc/OkapiClient.java b/main/src/cgeo/geocaching/connector/oc/OkapiClient.java index 3b8e866..e7d4e6f 100644 --- a/main/src/cgeo/geocaching/connector/oc/OkapiClient.java +++ b/main/src/cgeo/geocaching/connector/oc/OkapiClient.java @@ -30,6 +30,7 @@ import cgeo.geocaching.network.OAuth; import cgeo.geocaching.network.OAuthTokens; import cgeo.geocaching.network.Parameters; import cgeo.geocaching.settings.Settings; +import cgeo.geocaching.utils.HtmlUtils; import cgeo.geocaching.utils.JsonUtils; import cgeo.geocaching.utils.Log; import cgeo.geocaching.utils.SynchronizedDateFormat; @@ -64,7 +65,7 @@ import java.util.regex.Pattern; /** * Client for the OpenCaching API (Okapi). - * + * * @see <a href="http://www.opencaching.de/okapi/introduction.html">Okapi overview</a> * */ @@ -467,7 +468,7 @@ final class OkapiClient { parseUser(logResponse.get(LOG_USER)), parseDate(logResponse.get(LOG_DATE).asText()).getTime(), parseLogType(logResponse.get(LOG_TYPE).asText()), - logResponse.get(LOG_COMMENT).asText().trim()); + HtmlUtils.removeExtraParagraph(logResponse.get(LOG_COMMENT).asText().trim())); result.add(log); } catch (final NullPointerException e) { Log.e("OkapiClient.parseLogs", e); |