i18n: make warn_dangling_symref() automatically append \n

This helps remove \n from translatable strings

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy
2012-04-23 19:30:25 +07:00
committed by Junio C Hamano
parent 9665627d8c
commit 18986d5377
3 changed files with 5 additions and 4 deletions

1
refs.c
View File

@ -395,6 +395,7 @@ static int warn_if_dangling_symref(const char *refname, const unsigned char *sha
return 0;
fprintf(d->fp, d->msg_fmt, refname);
fputc('\n', d->fp);
return 0;
}