1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Fix to generate listings correctly for docbook backend

This commit is contained in:
Jonas Fonseca 2006-01-12 05:36:24 +01:00 committed by Jonas Fonseca
parent 877c5fc1ba
commit 2ed9e26ebe

View File

@ -40,7 +40,9 @@ print_keymap_actions()
[ "$action" = " *scripting-function*" ] && continue
echo 'ifdef::backend-docbook[]'
echo "$action:: $caption."
echo "$action::"
echo " $caption."
echo
echo 'endif::backend-docbook[]'
echo 'ifdef::backend-xhtml11[]'
printf "%-34s %s\n" "$action" "$caption"
@ -95,19 +97,10 @@ print_keymap_defaults()
*) modifier="" ;;
esac
case "$DOCTYPE" in
man)
echo
echo 'ifdef::backend-docbook[]'
echo "'$modifier$key'::"
echo " $action"
;;
html)
printf "%-11s %s\n" "$modifier$key" "$action"
;;
esac
echo 'ifdef::backend-docbook[]'
echo "'$modifier$key':: $action"
echo
echo 'endif::backend-docbook[]'
echo 'ifdef::backend-xhtml11[]'
printf "%-11s %s\n" "$modifier$key" "$action"
@ -115,7 +108,6 @@ print_keymap_defaults()
done
echo 'ifdef::backend-xhtml11[]'
echo '--------------------------------------------------------------------------------------------'
echo 'endif::backend-xhtml11[]'