|
|
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) |
|
|
 |
git clone git://git.codemadness.org/sfeed_curses (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit bed53f9cf8124b7fe556ac809e6479c017abfbbc |
|
|
 |
parent 85d1802fa73cb7311c6c2a4c917fcd16f647fbed |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
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(-) |
|
|
|
--- |
|
|
 |
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} |
|