sfeed_content: show any other content-type than "html" as plain-text - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed)
(HTM) git clone git://git.codemadness.org/sfeed_curses
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit bed53f9cf8124b7fe556ac809e6479c017abfbbc
(DIR) parent 85d1802fa73cb7311c6c2a4c917fcd16f647fbed
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 21 Apr 2021 17:02:38 +0200
sfeed_content: show any other content-type than "html" as plain-text
Diffstat:
M sfeed_content | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/sfeed_content b/sfeed_content
@@ -46,11 +46,11 @@ BEGIN {
if (!length($4))
next;
print "";
- if ($5 == "plain") {
- print unescape($4);
- } else if ($5 == "html") {
+ if ($5 == "html") {
print unescape($4) | htmlconv;
close(htmlconv);
+ } else {
+ print unescape($4);
}
}' | \
${PAGER:-less -R}