summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2018-07-02 22:44:14 +0200
committercos <cos>2018-07-02 22:44:14 +0200
commitf6789b9640f26988027665b287f116e14bfae297 (patch)
tree72060dd84f56132e9e0653b5b212692467c435de
parentb382bd12328c794b038a3dfd66adeec17f0b9324 (diff)
downloadirssi-hax/doc_format_fix.zip
syncdocs.sh: Add comment with sed commands to generate faq.txthax/doc_format_fix
-rwxr-xr-xutils/syncdocs.sh6
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"