From c2d7340f8f2f4ccdb7700b5550a9c25d2eeca3bc Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 31 Oct 2023 18:03:54 +0800 Subject: [PATCH] Variable spacing markdown list rendering The spacing between list items might as well represent whether the list is a tight or loose list. --- stdlib/Markdown/src/render/terminal/render.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Markdown/src/render/terminal/render.jl b/stdlib/Markdown/src/render/terminal/render.jl index 69b705538d80a..61feb73391134 100644 --- a/stdlib/Markdown/src/render/terminal/render.jl +++ b/stdlib/Markdown/src/render/terminal/render.jl @@ -76,7 +76,7 @@ function term(io::IO, md::List, columns) print(io, lstrip(line)) l < length(lines) && println(io) end - i < length(md.items) && println(io) + i < length(md.items) && print(io, '\n'^(2 - md.loose)) end end