mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
keys2doc: Change \"foo\" to "foo".
(cherry picked from commit d73632d7de
)
This commit is contained in:
parent
190b340c90
commit
183eafcc02
@ -77,8 +77,11 @@ print_keymap_defaults()
|
||||
entry=$(echo "$entry" | sed 's/.*{ { //')
|
||||
key=$(echo "$entry" | sed "s/\(KBD_[^,]*\|'.*'\),.*/\1/")
|
||||
action=$(echo "$entry" | sed "s/.*,.*\(ACT_$KEYMAP\)_\([A-Z_]*\).*/\2/")
|
||||
# If there are backslashed quotes, remove the backslashes.
|
||||
# (This is not needed in print_keymap_actions because
|
||||
# there the "read" command consumes the backslashes.)
|
||||
action=$(grep " $action," "$CONFIGDIR/actions-$keymap.inc" \
|
||||
| sed "s/.*\"\([^\"]*\)\".*N__(\"\(.*\)\").*/\2 ('\1')/")
|
||||
| sed "s/.*\"\([^\"]*\)\".*N__(\"\(.*\)\").*/\2 ('\1')/;s/\\\\\"/\"/g")
|
||||
q=
|
||||
|
||||
case "$key" in
|
||||
|
Loading…
Reference in New Issue
Block a user