printf %s\\n 'The following forges have no significant ethical issues:'
;;
gray)
printf %s\\n 'These forges would normally be blacklisted, but due to the short whitelist they are set aside as a less evil compromise to those blacklisted. They should still be avoided if possible.'
;;
black)
printf %s\\n 'These forges have severe ethical or trust issues and should be boycotted:'
;;
esac
};#intro
table_populate()
{
sqlite3 "${db_file}" < input_data/forges.sql
};#table_populate
table_text()
{
# .ft B (bold font)
# .ft I (italics font)
# .ft P (previous font)
# .ll 6i (6 inch width)
for lst in white gray black
do
if[["$lst"== black ]]
then
url_clause="''"
else
url_clause="case when url_clrnet like '_%' then char(10)||'('||replace(url_clrnet,'https://','')||')||||||' else '' end"
case when dead then'${sym[skull]}' when cflogin or antitor then'${sym[noentry]} (exclusive walled garden)' when not openpubreg then'${sym[red_circle]}'else'${sym[green_circle]}' end,
case when cflogin then'${sym[cloud_lightening]}'else'n' end,
case when hrecaptcha='unavoidable'then'${sym[hammerpick]}'else'n' end,
case when forced_nfsw then'${sym[biohaz]}'else'n' end,
case when notes is null then'|'else notes||'|' end
from forgesTbl where lst_kind='$lst'
order by url_clrnet collate nocase;"
printf$'\n'
done
};#table_md
table_populate
case"$1" in
txt|text)
table_text | tbl | nroff -Tascii | uniq
;;
*)
printf'%s\n\n''[//]: # (** DO NOT EDIT this file directly! ** It is auto-generated. Changes should be made to financial_institutions.sql or '"${0##*/}"' instead.)'