Switch htmlfmt to html2text. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 4f4e1df23d5ffd15534295f6ee48d69a859e084e DIR parent 8bc4a4bc87a272cc31c743e8433c789377458f99 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sat, 15 Jan 2022 19:51:45 +0100 Switch htmlfmt to html2text. Htmlfmt was segfaulting too much. Diffstat: M annna-message-common | 2 +- A html2text | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -179,7 +179,7 @@ case "${text}" in then if [ -z "${curi}" ]; then - curi="$(9 htmlfmt < "${tmpf}" | /br/bin/bitreich-paste)" + curi="$(html2text < "${tmpf}" | /br/bin/bitreich-paste)" fi outputstr="${outputstr} content: ${curi} ;" fi DIR diff --git a/html2text b/html2text @@ -0,0 +1,9 @@ +#!/bin/sh + +lynx \ + -dump \ + -stdin \ + -nomargins \ + -display_charset="utf-8" \ + -image_links +