Merge pull request #1158 from mfietz/issue/1153-needless-spaces

Remove needless leading and trailing spaces in feed or episode title
This commit is contained in:
Tom Hennen 2015-09-04 18:20:44 -04:00
commit 3efd644e0b
1 changed files with 4 additions and 3 deletions

View File

@ -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)) {