summaryrefslogtreecommitdiff
path: root/script/provider/markdown.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-13 17:42:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-13 17:42:38 +0800
commit920f252f0ea57615600258b301917e6b3fab0bdc (patch)
tree8afe4598628fc7ce24a4517b7eb7901537d59d8d /script/provider/markdown.lua
parentfe5d329c4787fde7a8fec0e9f092537eb439a3b3 (diff)
downloadlua-language-server-920f252f0ea57615600258b301917e6b3fab0bdc.zip
reslove #537
Diffstat (limited to 'script/provider/markdown.lua')
-rw-r--r--script/provider/markdown.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/markdown.lua b/script/provider/markdown.lua
index ceaedfdb..3b4a2be1 100644
--- a/script/provider/markdown.lua
+++ b/script/provider/markdown.lua
@@ -29,6 +29,9 @@ function mt:add(language, text)
end
self[#self+1] = text
else
+ if #self > 0 then
+ self[#self+1] = ''
+ end
self[#self+1] = ('```%s\n%s\n```'):format(language, text)
end