libfort icon indicating copy to clipboard operation
libfort copied to clipboard

Escape sequences break the formatting of tables

Open vitcpp opened this issue 3 years ago • 0 comments

Is there a possibility to ignore escape sequences when calculating table layout? I've found that escape sequences are processed as regular text which lead to improper table layout calculations. Can I propose to add such support?

I think the simple solution would be to implement a function like ft_set_u8strwid_func for char buffers. Separate concept of string length from string width. Implement two different functions: one for calculating string length and another for calculating string visible width.

vitcpp avatar Apr 06 '22 05:04 vitcpp