mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05: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:
parent
dc497964e9
commit
3de420d72f
@ -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[]'
|
||||
|
Loading…
Reference in New Issue
Block a user