summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsfeed_content8
-rw-r--r--sfeed_content.15
2 files changed, 9 insertions, 4 deletions
diff --git a/sfeed_content b/sfeed_content
index 2d0ee23..9fba99b 100755
--- a/sfeed_content
+++ b/sfeed_content
@@ -12,9 +12,11 @@ function unescape(s) {
return s;
}
BEGIN {
- htmlconv = "lynx -stdin -dump " \
- "-underline_links -image_links " \
- "-display_charset=\"utf-8\" -assume_charset=\"utf-8\" ";
+ htmlconv = ENVIRON["SFEED_HTMLCONV"];
+ if (!length(htmlconv))
+ htmlconv = "lynx -stdin -dump " \
+ "-underline_links -image_links " \
+ "-display_charset=\"utf-8\" -assume_charset=\"utf-8\" ";
}
{
if (previtem)
diff --git a/sfeed_content.1 b/sfeed_content.1
index a5bc4d4..4643205 100644
--- a/sfeed_content.1
+++ b/sfeed_content.1
@@ -1,4 +1,4 @@
-.Dd July 25, 2021
+.Dd December 22, 2021
.Dt SFEED_CONTENT 1
.Os
.Sh NAME
@@ -28,6 +28,9 @@ to view content.
.It Ev PAGER
The pager used to view the content.
If it is not set it will use "less -R" by default.
+.It Ev SFEED_HTMLCONV
+The program used to convert HTML content to plain-text.
+If it is not set it will use lynx by default.
.El
.Sh EXIT STATUS
.Ex -std