log.c - fix newline - Fixes:#2378
On branch Fix-new-line Changes to be committed: modified: log.c
This commit is contained in:
parent
b67261ab27
commit
4c923c637c
|
@ -143,6 +143,8 @@ static void sc_do_log_va(sc_context_t *ctx, int level, const char *file, int lin
|
|||
}
|
||||
|
||||
sc_color_fprintf_va(color, ctx, ctx->debug_file, format, args);
|
||||
if (strlen(format) == 0 || format[strlen(format) - 1] != '\n')
|
||||
sc_color_fprintf(color, ctx, ctx->debug_file, "\n");
|
||||
fflush(ctx->debug_file);
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
Loading…
Reference in New Issue