mirror of
https://github.com/rkd77/elinks.git
synced 2025-10-21 19:54:04 -04:00
keys2doc: fix handling of dots (.) in description list term
Quote character keybindings to workaround unescaped (resulting to
invisible) dots in elinkskeys(5).
(cherry picked from commit 3de420d72f)
This commit is contained in:
committed by
Kalle Olavi Niemitalo
parent
9863dbfa9c
commit
b28ccd6e4f
@@ -82,6 +82,7 @@ print_keymap_defaults()
|
||||
# there the "read" command consumes the backslashes.)
|
||||
action=$(grep " $action," "$CONFIGDIR/actions-$keymap.inc" \
|
||||
| sed "s/.*\"\([^\"]*\)\".*N__(\"\(.*\)\").*/\2 ('\1')/;s/\\\\\"/\"/g")
|
||||
q=
|
||||
|
||||
case "$key" in
|
||||
KBD_*)
|
||||
@@ -95,6 +96,7 @@ print_keymap_defaults()
|
||||
*)
|
||||
key=$(echo "$key" | sed "s/^'\(.*\)'$/\1/" \
|
||||
| sed "s/'/{squote}/")
|
||||
q='"'
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -106,7 +108,7 @@ print_keymap_defaults()
|
||||
esac
|
||||
|
||||
echo 'ifdef::backend-docbook[]'
|
||||
echo "'$modifier$key'::"
|
||||
echo "'$modifier$q$key$q'::"
|
||||
echo " $action"
|
||||
echo
|
||||
echo 'endif::backend-docbook[]'
|
||||
|
||||
Reference in New Issue
Block a user