From 1adccd9a281c14d89abec1155a41c486984c1d74 Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Mon, 26 Oct 2020 10:01:54 +0100 Subject: [PATCH] refs #3503: End trailing newline in message (#3644) --- Modelica/Resources/C-Sources/ModelicaStrings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modelica/Resources/C-Sources/ModelicaStrings.c b/Modelica/Resources/C-Sources/ModelicaStrings.c index 1aa02895fd..f6e36af25c 100644 --- a/Modelica/Resources/C-Sources/ModelicaStrings.c +++ b/Modelica/Resources/C-Sources/ModelicaStrings.c @@ -114,7 +114,7 @@ _Ret_z_ const char* ModelicaStrings_substring(_In_z_ const char* string, /* Check arguments */ if (startIndex < 1) { ModelicaFormatWarning("Non-positive startIndex (= %d) of Utilities.Strings.substring " - "was set to 1.", startIndex); + "was set to 1.\n", startIndex); startIndex = 1; } else if (startIndex > len) { @@ -122,7 +122,7 @@ _Ret_z_ const char* ModelicaStrings_substring(_In_z_ const char* string, } if (endIndex < 0) { ModelicaFormatWarning("Negative endIndex (= %d) of Utilities.Strings.substring " - "was set to %d.", endIndex, startIndex); + "was set to %d.\n", endIndex, startIndex); endIndex = startIndex; } else if (endIndex < startIndex) {