mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Actually make print_wrapped_text() useful
Now, it returns the current column, does not add a newline, and you can pass a negative indent, to indicate that the indent was already printed. With this, you can actually continue in the middle of a paragraph, not having to print everything into a buffer first. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
committed by
Junio C Hamano
parent
e52a5de45a
commit
094e03b039
2
utf8.h
2
utf8.h
@@ -5,7 +5,7 @@ int utf8_width(const char **start);
|
||||
int is_utf8(const char *text);
|
||||
int is_encoding_utf8(const char *name);
|
||||
|
||||
void print_wrapped_text(const char *text, int indent, int indent2, int len);
|
||||
int print_wrapped_text(const char *text, int indent, int indent2, int len);
|
||||
|
||||
#ifndef NO_ICONV
|
||||
char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding);
|
||||
|
||||
Reference in New Issue
Block a user