diff options
author | cos <cos> | 2018-07-02 22:44:14 +0200 |
---|---|---|
committer | cos <cos> | 2018-07-02 22:44:14 +0200 |
commit | f6789b9640f26988027665b287f116e14bfae297 (patch) | |
tree | 72060dd84f56132e9e0653b5b212692467c435de /utils | |
parent | b382bd12328c794b038a3dfd66adeec17f0b9324 (diff) | |
download | irssi-f6789b9640f26988027665b287f116e14bfae297.zip |
syncdocs.sh: Add comment with sed commands to generate faq.txthax/doc_format_fix
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/syncdocs.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/syncdocs.sh b/utils/syncdocs.sh index ed76bf85..0f85948b 100755 --- a/utils/syncdocs.sh +++ b/utils/syncdocs.sh @@ -45,7 +45,11 @@ else fi if type w3m >/dev/null 2>&1 ; then - converter="w3m -o display_link_number=1 -dump -T text/html" + converter="w3m -O UTF-8 -o display_link_number=1 -dump -T text/html" + # Adding these sed commands seem to generate the exact output expected: + # sed 's/^\(.\+\)/ \1/; s/^ \([QA]:\)/\1/'| + # sed 'x;s/^\(Q:.*\)/\1/g;t srch_qe;x;:srch_qs s/^\(Q:.*\)/\1/g;t + # fnd_qs;p;x;d;:srch_qe;x;s/^$//;t fnd_qe;p;d;:fnd_qs;p;x;d;:fnd_qe;x;d' any=true elif type lynx >/dev/null 2>&1 ; then converter="lynx -dump -stdin -force_html" |