From 183eafcc02e65f9786e054bf6fa6720ac5f9ecd9 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sat, 6 Jan 2007 21:38:29 +0200 Subject: [PATCH] keys2doc: Change \"foo\" to "foo". (cherry picked from commit d73632d7de8ef04a9e75bc90b1c181332d7b10b6) --- doc/tools/keys2doc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/tools/keys2doc b/doc/tools/keys2doc index 6939a321..1f36f3a5 100755 --- a/doc/tools/keys2doc +++ b/doc/tools/keys2doc @@ -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 -- 2.11.4.GIT