diff options
author | Tom Hennen <TomHennen@users.noreply.github.com> | 2015-09-04 18:20:44 -0400 |
---|---|---|
committer | Tom Hennen <TomHennen@users.noreply.github.com> | 2015-09-04 18:20:44 -0400 |
commit | 3efd644e0b2c79c32eeccfea464a06887109e5ee (patch) | |
tree | 6473766ff88727521171790dcd76c146112d1be7 | |
parent | 83aa1b15f2381faa0044618cb6ea7fab5ee59612 (diff) | |
parent | ff7b5de14450522c33957d5dcda5e46b075c2c99 (diff) | |
download | AntennaPod-3efd644e0b2c79c32eeccfea464a06887109e5ee.zip |
Merge pull request #1158 from mfietz/issue/1153-needless-spaces
Remove needless leading and trailing spaces in feed or episode title
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSRSS20.java | 7 |
1 files 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)) { |