strbuf: convenience format functions with \n automatically appended
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 23 Apr 2012 12:30:22 +0000 (19:30 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Apr 2012 21:55:48 +0000 (14:55 -0700)
commit9a0a30aa4b92a69f63275680820b81c7e34629c9
tree9eb2a29599ae9f2de250dfa7c11dad3d951428c7
parent1b8b2e4dc8fe2e4289ac47ffe55582f1afb67f0c
strbuf: convenience format functions with \n automatically appended

These functions are helpful when we do not want to expose \n to
translators. For example

    printf("hello world\n");

can be converted to

    printf_ln(_("hello world"));

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
strbuf.c
strbuf.h