Fix: Keep empty lines in discussion tree (#173)
* Docs: Fix typos and remove trailing spaces * Fix: Split strings by new lines correctly * Docs: Recommend breakindent option to improve tree nodes indentation * Fix: Replace whole buffer when creating a new suggestion Previously, a trailing empty line was left in the buffer. --------- Co-authored-by: Jakub Bortlík <jakub.bortlik@phonexia.com>
This commit is contained in:
@@ -148,7 +148,7 @@ M.see_logs = function()
|
||||
end
|
||||
|
||||
local lines = {}
|
||||
for line in file:gmatch("[^\n]+") do
|
||||
for line in u.split_by_new_lines(file) do
|
||||
table.insert(lines, line)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user