mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-20 09:29:26 +08:00
Ensure newline in output prior to exit.
Otherwise prompt will be right after output instead of starting on new line.
This commit is contained in:
committed by
Will Pearson
parent
7a0f937f1b
commit
fcc2e20c8e
@@ -30,13 +30,13 @@ static bool HasErrorsOrWarnings(ON_TextLog* log, const char* operation)
|
||||
ON_String msg;
|
||||
if (ON_GetErrorCount() > 0)
|
||||
{
|
||||
msg.Format("%d errors: %s", ON_GetErrorCount(), operation);
|
||||
msg.Format("%d errors: %s\n", ON_GetErrorCount(), operation);
|
||||
log->Print(msg);
|
||||
return true;
|
||||
}
|
||||
if (ON_GetWarningCount() > 0)
|
||||
{
|
||||
msg.Format("%d warnings: %s", ON_GetErrorCount(), operation);
|
||||
msg.Format("%d warnings: %s\n", ON_GetErrorCount(), operation);
|
||||
log->Print(msg);
|
||||
return true;
|
||||
}
|
||||
@@ -162,7 +162,7 @@ int main(int argc, const char *argv[])
|
||||
// Write file
|
||||
model.m_sStartSectionComments = "Converted by example_convert.exe";
|
||||
bool outrc = model.Write(output, version, dump);
|
||||
if (HasErrorsOrWarnings(dump, "writing output file"))
|
||||
if (HasErrorsOrWarnings(dump, "writing output file\n"))
|
||||
return 1;
|
||||
|
||||
if (outrc)
|
||||
|
||||
Reference in New Issue
Block a user