From e49a0d258101826154ac78887456042fe249f7cd Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 13 Dec 2018 19:36:23 +1100 Subject: [PATCH] doc.kak: Do not join together bullet lists Fixes #2610 --- rc/core/doc.kak | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rc/core/doc.kak b/rc/core/doc.kak index 789d8c71..f1dbc850 100644 --- a/rc/core/doc.kak +++ b/rc/core/doc.kak @@ -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 ^\h*-{2,}(\n|\z) S\n\z \n } + try %{ + execute-keys -draft '%S\n{2,}|(?<=\+)\n|^[^\n]+::\n|^\h*[*-]\h+' \ + ^\h*-{2,}(\n|\z) S\n\z \n + } # Remove some line end markers try %{ execute-keys -draft \%s \h*(\+|:{2,})$ d }