Re: [PATCH 2/2] builtin/repo: fix table alignment for UTF-8 characters
- From
Jiang Xin <worldhello.net@gmail.com>
- Date
- Nov 15, 2025, 12:41 UTC
- Message-ID
- <CANYiYbFjShuKULNeyQBKmAb07gwEt5PZp8S_62v9E=eVWGr9-w@mail.gmail.com>
- In-Reply-To
- <wgxzx47nsro3h6ju3t2aatrygkr5g7i2dbl26fj53qh4f7jdxw@d233r7jflrke>
On Sat, Nov 15, 2025 at 1:50 AM Justin Tobler <jltobler@gmail.com> wrote:
Show 7 quoted lines
> Ok, using strbuf_utf8_align() compensates the line width when using > multi-byte UTF-8 characters to ensure the correct length. Looks good. > > > + strbuf_reset(&buf); > > Do we need to reset the buffer here? In the following loop we reset it > at the start of each iteration.
Will remove this line in next reroll.
-- Jiang Xin