Skip to content

Commit 8212333

Browse files
pcloudsgitster
authored andcommitted
i18n: leave \n out of translated diffstat
GETTEXT_POISON scrapes everything in translated strings, including \n. t4205.12 however needs this \n in matching the end result. Keep this \n out of translation to make t4205.12 happy. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7f81463 commit 8212333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ int print_stat_summary(FILE *fp, int files, int insertions, int deletions)
13291329

13301330
if (!files) {
13311331
assert(insertions == 0 && deletions == 0);
1332-
return fputs(_(" 0 files changed\n"), fp);
1332+
return fprintf(fp, "%s\n", _(" 0 files changed"));
13331333
}
13341334

13351335
strbuf_addf(&sb,

0 commit comments

Comments
 (0)