1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-06 23:44:43 -04:00

conf2doc: Backslashify --help, --enable, --disable to avoid —.

This commit is contained in:
Kalle Olavi Niemitalo 2006-12-27 19:41:04 +02:00 committed by Kalle Olavi Niemitalo
parent eb7ac943ed
commit 7b931a2de0

View File

@ -73,7 +73,8 @@ cat "$CONFFILE" | while read line; do
# Ignore # Ignore
;; ;;
"#"*) "#"*)
line=$(strip_comment "$line") # Backslashify --help, --enable, --disable to avoid —.
line=$(strip_comment "$line" | sed 's/ --\([hed]\)/ \\--\1/')
echo "$line" >> $TMPFILE echo "$line" >> $TMPFILE
;; ;;
esac esac