Closed alexmozaidze closed 10 months ago
Spaces before input don't get stripped, which results in a misaligned box.
If the input is not a comment, spaces after the input get preserved as well.
my thing -- my thing
:CBalbox
-- ╭──────────────────────╮ -- │ my thing │ -- ╰──────────────────────╯ -- ╭─────────────╮ -- │ my thing │ -- ╰─────────────╯
Pipe the input through vim.trim()
vim.trim()
local input = " my thing " input = vim.trim(input) -- => "my thing"
Thanks for your feedback! I use vim.trim() but it seems I missed a place where I should have, I'll look into it.
Fixed, thanks again!
Bug
Spaces before input don't get stripped, which results in a misaligned box.
If the input is not a comment, spaces after the input get preserved as well.
Reproduction
:CBalbox
on each linePotential solution
Pipe the input through
vim.trim()