summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2022-01-30 17:50:02 +0100
committerGitHub <noreply@github.com>2022-01-30 17:50:02 +0100
commit4a135a5f051fcabc9ae94caf9c0561737e27865f (patch)
treea454497d53b0b09b606aba0a866c4321d717b5df
parent95390fd46713e7f627e3595c590d87cd3fb0ba9b (diff)
parent6196cd754fd91a082e4a4e4abc4c15c09333ecbc (diff)
downloadantennapod-4a135a5f051fcabc9ae94caf9c0561737e27865f.zip
Merge pull request #5682 from ByteHamster/plain-text-description
Fix line breaks in plain-text descriptions
-rw-r--r--parser/feed/src/main/java/de/danoeh/antennapod/parser/feed/namespace/Rss20.java2
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));