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:
parent
877c5fc1ba
commit
2ed9e26ebe
@ -40,7 +40,9 @@ print_keymap_actions()
|
|||||||
[ "$action" = " *scripting-function*" ] && continue
|
[ "$action" = " *scripting-function*" ] && continue
|
||||||
|
|
||||||
echo 'ifdef::backend-docbook[]'
|
echo 'ifdef::backend-docbook[]'
|
||||||
echo "$action:: $caption."
|
echo "$action::"
|
||||||
|
echo " $caption."
|
||||||
|
echo
|
||||||
echo 'endif::backend-docbook[]'
|
echo 'endif::backend-docbook[]'
|
||||||
echo 'ifdef::backend-xhtml11[]'
|
echo 'ifdef::backend-xhtml11[]'
|
||||||
printf "%-34s %s\n" "$action" "$caption"
|
printf "%-34s %s\n" "$action" "$caption"
|
||||||
@ -95,19 +97,10 @@ print_keymap_defaults()
|
|||||||
*) modifier="" ;;
|
*) modifier="" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$DOCTYPE" in
|
echo 'ifdef::backend-docbook[]'
|
||||||
man)
|
|
||||||
echo
|
|
||||||
echo "'$modifier$key'::"
|
echo "'$modifier$key'::"
|
||||||
echo " $action"
|
echo " $action"
|
||||||
;;
|
echo
|
||||||
html)
|
|
||||||
printf "%-11s %s\n" "$modifier$key" "$action"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo 'ifdef::backend-docbook[]'
|
|
||||||
echo "'$modifier$key':: $action"
|
|
||||||
echo 'endif::backend-docbook[]'
|
echo 'endif::backend-docbook[]'
|
||||||
echo 'ifdef::backend-xhtml11[]'
|
echo 'ifdef::backend-xhtml11[]'
|
||||||
printf "%-11s %s\n" "$modifier$key" "$action"
|
printf "%-11s %s\n" "$modifier$key" "$action"
|
||||||
@ -115,7 +108,6 @@ print_keymap_defaults()
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo 'ifdef::backend-xhtml11[]'
|
echo 'ifdef::backend-xhtml11[]'
|
||||||
|
|
||||||
echo '--------------------------------------------------------------------------------------------'
|
echo '--------------------------------------------------------------------------------------------'
|
||||||
echo 'endif::backend-xhtml11[]'
|
echo 'endif::backend-xhtml11[]'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user