doc.kak: Do not join together bullet lists

Fixes #2610
This commit is contained in:
Maxime Coste 2018-12-13 19:36:23 +11:00
parent 9b9aedd175
commit e49a0d2581

View File

@ -104,7 +104,10 @@ define-command -params 1 -hidden doc-render %{
doc-parse-anchors
# Join paragraphs together
try %{ execute-keys -draft \%S \n{2,}|(?<=\+)\n|^[^\n]+::\n <ret> <a-K>^\h*-{2,}(\n|\z)<ret> S\n\z<ret> <a-k>\n<ret> <a-j> }
try %{
execute-keys -draft '%S\n{2,}|(?<=\+)\n|^[^\n]+::\n|^\h*[*-]\h+<ret>' \
<a-K>^\h*-{2,}(\n|\z)<ret> S\n\z<ret> <a-k>\n<ret> <a-j>
}
# Remove some line end markers
try %{ execute-keys -draft \%s \h*(\+|:{2,})$ <ret> d }