path: root/utf8.h
diff options
authorJohannes Schindelin <>2007-02-27 15:20:31 (GMT)
committerJunio C Hamano <>2007-02-28 01:29:02 (GMT)
commit094e03b039aeaad759227540491c235b3a83b83a (patch)
tree97e748a42dc33cde1be07e0ce31737bf90fcd3a6 /utf8.h
parente52a5de45ab8b61bdddf48a466cb3388b38ad7a4 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'utf8.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index a07c5a8..15db6f1 100644
--- a/utf8.h
+++ b/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);