From e84dd80244eef284cc6d66bb7f9a43bfa271f662 Mon Sep 17 00:00:00 2001 From: SeerLite Date: Thu, 1 Apr 2021 21:19:20 -0300 Subject: [PATCH] rc markdown: Fix trailing whitespace removal Modified the test cases accordingly too --- rc/filetype/markdown.kak | 2 +- test/indent/markdown/inside-complex-blockquote/out | 2 +- test/indent/markdown/inside-list-item/out | 2 +- test/indent/markdown/inside-nested-list-item/out | 2 +- test/indent/markdown/inside-simple-blockquote/out | 2 +- test/indent/markdown/inside-strong-emphasis/out | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rc/filetype/markdown.kak b/rc/filetype/markdown.kak index 38e32ea3..5e5e92b8 100644 --- a/rc/filetype/markdown.kak +++ b/rc/filetype/markdown.kak @@ -106,7 +106,7 @@ define-command -hidden markdown-indent-on-new-line %{ # preserve previous line indent try %{ execute-keys -draft K } # remove trailing white spaces - try %{ execute-keys -draft -itersel %{ k s \h+$ d } } + try %{ execute-keys -draft k s \h+$ d } } } diff --git a/test/indent/markdown/inside-complex-blockquote/out b/test/indent/markdown/inside-complex-blockquote/out index be4f1e99..2b5799f9 100644 --- a/test/indent/markdown/inside-complex-blockquote/out +++ b/test/indent/markdown/inside-complex-blockquote/out @@ -1,2 +1,2 @@ ->> > > block +>> > > block >> > > quote diff --git a/test/indent/markdown/inside-list-item/out b/test/indent/markdown/inside-list-item/out index 61c6d22a..be88314c 100644 --- a/test/indent/markdown/inside-list-item/out +++ b/test/indent/markdown/inside-list-item/out @@ -1,2 +1,2 @@ -* inside +* inside * item diff --git a/test/indent/markdown/inside-nested-list-item/out b/test/indent/markdown/inside-nested-list-item/out index 73b7f06d..a6834ab2 100644 --- a/test/indent/markdown/inside-nested-list-item/out +++ b/test/indent/markdown/inside-nested-list-item/out @@ -1,3 +1,3 @@ - parent - * some + * some * child diff --git a/test/indent/markdown/inside-simple-blockquote/out b/test/indent/markdown/inside-simple-blockquote/out index d286b922..159530c8 100644 --- a/test/indent/markdown/inside-simple-blockquote/out +++ b/test/indent/markdown/inside-simple-blockquote/out @@ -1,2 +1,2 @@ -> block +> block > quote diff --git a/test/indent/markdown/inside-strong-emphasis/out b/test/indent/markdown/inside-strong-emphasis/out index 3c878b78..e506acb2 100644 --- a/test/indent/markdown/inside-strong-emphasis/out +++ b/test/indent/markdown/inside-strong-emphasis/out @@ -1,2 +1,2 @@ -**strong +**strong emphasis**