Skip to content

Commit

Permalink
fix html output with html2text
Browse files Browse the repository at this point in the history
  • Loading branch information
wofr06 committed Nov 3, 2023
1 parent 9891225 commit 33c2f19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lesspipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -782,9 +782,8 @@ ishtml () {
has_cmd elinks && nodash "elinks -dump -force-html" "$1" && return ||
has_cmd w3m && handle_w3m "$1" && return ||
has_cmd lynx && lynx -force_html -dump "$arg1" && return ||
# different incompatible versions with the name html2text may let this fail
[[ "$1" == https://* ]] && return
html2text -utf8 || html2text -from_encoding utf-8
# different versions of html2text existing, therefore no encoding handling
[[ "$1" == https://* ]] && return ||
has_cmd html2text && nodash html2text "$1"
}

Expand Down

0 comments on commit 33c2f19

Please sign in to comment.