clack icon indicating copy to clipboard operation
clack copied to clipboard

[Request] Fix newline spacing

Open brian-lou opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. When using new line characters in any string, the new line breaks the | spacing and starts the new line from the left-most border.

Describe the solution you'd like Ideally, newlines in strings will be offset similarly as the first line, where it is offset from the icon.

brian-lou avatar Apr 25 '25 21:04 brian-lou

We basically need to wrap strings and re-render when a resize happens I think

43081j avatar Apr 26 '25 11:04 43081j

After some more experimentation I think the issue occurs when the new lines are in an interactive prompt. When the new line is in a log, the padding works correctly.

brian-lou avatar Apr 28 '25 18:04 brian-lou