diff --git a/lua/trouble/text.lua b/lua/trouble/text.lua index 5c452df8..077f0581 100644 --- a/lua/trouble/text.lua +++ b/lua/trouble/text.lua @@ -19,6 +19,7 @@ function Text:nl() end function Text:render(str, group, opts) + str = str:gsub("[\n]", " ") if type(opts) == "string" then opts = {append = opts} end opts = opts or {}