From ff7b5de14450522c33957d5dcda5e46b075c2c99 Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Mon, 31 Aug 2015 10:58:43 +0200 Subject: [PATCH] Remove needless leading and trailing spaces in feed or episode title --- .../antennapod/core/syndication/namespace/NSRSS20.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java index 31eb2efd6..25a57f71b 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java +++ b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java @@ -119,13 +119,14 @@ public class NSRSS20 extends Namespace { state.getCurrentItem().setItemIdentifier(content); } } else if (top.equals(TITLE)) { + String title = content.trim(); if (second.equals(ITEM)) { - state.getCurrentItem().setTitle(content); + state.getCurrentItem().setTitle(title); } else if (second.equals(CHANNEL)) { - state.getFeed().setTitle(content); + state.getFeed().setTitle(title); } else if (second.equals(IMAGE) && third != null && third.equals(CHANNEL)) { - state.getFeed().getImage().setTitle(content); + state.getFeed().getImage().setTitle(title); } } else if (top.equals(LINK)) { if (second.equals(CHANNEL)) {