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