Re: [PATCH v10 04/13] utf8: add function to align a string into given strbuf
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Aug 15, 2015, 08:27 UTC
- Message-ID
- <CACsJy8AFwcLZGQqg2Cv+fb2JBiZjh2tBpG4=8uxQdbUUmdZ-Pw@mail.gmail.com>
- In-Reply-To
- <1439129506-9989-5-git-send-email-Karthik.188@gmail.com>
On Sun, Aug 9, 2015 at 9:11 PM, Karthik Nayak <karthik.188@gmail.com> wrote:
> Add strbuf_utf8_align() which will align a given string into a strbuf > as per given align_type and width. If the width is greater than the > string length then no alignment is performed.
I smell an opportunity to reuse this code and kill some in pretty.c's format_and_pad_commit(). If you want, you can do it. Else this is my personal note so I don't forget to do it later :)
-- Duy