diff options
author | ByteHamster <info@bytehamster.com> | 2022-01-30 14:47:02 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-01-30 14:47:14 +0100 |
commit | 6196cd754fd91a082e4a4e4abc4c15c09333ecbc (patch) | |
tree | a454497d53b0b09b606aba0a866c4321d717b5df /parser/feed/src/main/java | |
parent | 95390fd46713e7f627e3595c590d87cd3fb0ba9b (diff) | |
download | AntennaPod-6196cd754fd91a082e4a4e4abc4c15c09333ecbc.zip |
Fix line breaks in plain-text descriptions
Workaround was added for publishers misbehaving but the current
implementation breaks valid feeds
Diffstat (limited to 'parser/feed/src/main/java')
-rw-r--r-- | parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Rss20.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Rss20.java b/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Rss20.java index a39e1b5b7..420bc0000 100644 --- a/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Rss20.java +++ b/parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Rss20.java @@ -136,7 +136,7 @@ public class Rss20 extends Namespace { if (CHANNEL.equals(second) && state.getFeed() != null) { state.getFeed().setDescription(contentFromHtml); } else if (ITEM.equals(second) && state.getCurrentItem() != null) { - state.getCurrentItem().setDescriptionIfLonger(contentFromHtml); + state.getCurrentItem().setDescriptionIfLonger(content); // fromHtml here breaks \n when not html } } else if (LANGUAGE.equals(localName) && state.getFeed() != null) { state.getFeed().setLanguage(content.toLowerCase(Locale.US)); |