BKE_reports: only print a single newline after each report

Printing reports was printing 2x newlines afterwards.

This caused a blank line to be printed when any operator reported info.
This commit is contained in:
Campbell Barton 2024-03-26 22:44:09 +11:00
parent 5764173501
commit 9c3eceb8c8
1 changed files with 2 additions and 1 deletions

View File

@ -320,7 +320,8 @@ void BKE_reports_print(ReportList *reports, eReportType level)
return;
}
puts(cstring);
/* A trailing newline is already part of `cstring`. */
fputs(cstring, stdout);
fflush(stdout);
MEM_freeN(cstring);
}