From fcc2e20c8e790697fa90c1ee9f2c3c8f7ba1be77 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Wed, 3 Oct 2018 10:10:04 +0300 Subject: [PATCH] Ensure newline in output prior to exit. Otherwise prompt will be right after output instead of starting on new line. --- example_convert/example_convert.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example_convert/example_convert.cpp b/example_convert/example_convert.cpp index 9e03ebe6..12dbb35c 100644 --- a/example_convert/example_convert.cpp +++ b/example_convert/example_convert.cpp @@ -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)