Skip to content

Commit

Permalink
Merge pull request #626 from ckipp01/new-lines
Browse files Browse the repository at this point in the history
fix: make sure new lines are taken out of the short summary
  • Loading branch information
ckipp01 authored Nov 15, 2023
2 parents 4d02651 + ba5e46c commit 96d0c8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/metals/doctor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ Doctor.create = function(args)
table.insert(output, string.format("- error type: %s", report.errorReportType))
table.insert(output, "")
table.insert(output, "#### Summary")
table.insert(output, report.shortSummary)
local summary_lines = util.split_on(report.shortSummary, "\n")
for _, line in pairs(summary_lines) do
table.insert(output, line)
end
end
end
end
Expand Down

0 comments on commit 96d0c8d

Please sign in to comment.