1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

keys2doc: fix handling of dots (.) in description list term

Quote character keybindings to workaround unescaped (resulting to
invisible) dots in elinkskeys(5).
This commit is contained in:
Jonas Fonseca 2008-03-03 01:59:01 +01:00
parent dc497964e9
commit 3de420d72f

View File

@ -79,6 +79,7 @@ print_keymap_defaults()
action=$(echo "$entry" | sed "s/.*,.*\(ACT_$KEYMAP\)_\([A-Z_]*\).*/\2/")
action=$(grep " $action," "$CONFIGDIR/actions-$keymap.inc" \
| sed "s/.*\"\([^\"]*\)\".*N__(\"\(.*\)\").*/\2 ('\1')/")
q=
case "$key" in
KBD_*)
@ -92,6 +93,7 @@ print_keymap_defaults()
*)
key=$(echo "$key" | sed "s/^'\(.*\)'$/\1/" \
| sed "s/'/{squote}/")
q='"'
;;
esac
@ -103,7 +105,7 @@ print_keymap_defaults()
esac
echo 'ifdef::backend-docbook[]'
echo "'$modifier$key'::"
echo "'$modifier$q$key$q'::"
echo " $action"
echo
echo 'endif::backend-docbook[]'