Merge pull request #5682 from ByteHamster/plain-text-description

Fix line breaks in plain-text descriptions
This commit is contained in:
ByteHamster 2022-01-30 17:50:02 +01:00 committed by GitHub
commit 4a135a5f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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