From: cpickett Date: Fri, 13 Oct 2006 04:10:50 +0000 (+0000) Subject: * Fixed printing of newlines in output. X-Git-Tag: 0.10.0~814 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1228213704d6e24023d58ec95aba2de7b11ca12b;p=check * Fixed printing of newlines in output. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@339 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/src/check_log.c b/src/check_log.c index 69b19cc..edb5cb0 100644 --- a/src/check_log.c +++ b/src/check_log.c @@ -148,12 +148,15 @@ void stdout_lfun (SRunner *sr, FILE *file, enum print_output printmode, case CLSTART_S: s = obj; if (printmode > CK_SILENT) { - fprintf(file, " %s", s->name); + fprintf(file, " %s\n", s->name); } break; case CLEND_SR: if (printmode > CK_SILENT) { - fprintf (file, "\n"); + /* we don't want a newline before printing here, newlines should + come after printing a string, not before. it's better to add + the newline above in CLSTART_S. + */ srunner_fprint (file, sr, printmode); } break;