Fix line breaks in plain-text descriptions
Workaround was added for publishers misbehaving but the current implementation breaks valid feeds
This commit is contained in:
parent
95390fd467
commit
6196cd754f
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue