diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d90f7fd0557c6a4ea8598619b3a952699ea80632..fb08c5e12da95d0f972076c873773847da6326e0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -87,7 +87,7 @@ Check style:
       pre-commit run --color=always --all-files || {
         git diff --ignore-submodules --patch-with-raw > "${STYLE_PATCH}"
         test -s "${STYLE_PATCH}" && {
-          printf "${RED}At least some of the issues can be resolved with the patch (see artifacts):\n
+          printf "${RED}At least some of the issues can be resolved with the patch (see artifacts):
         ${CI_JOB_URL}/artifacts/raw/${STYLE_PATCH}.\n${DEFAULT}"
         } || {
           printf "${RED}The issues cannot be resolved with a patch.\n${DEFAULT}"
@@ -186,7 +186,7 @@ include:
         --exclude-standard \
       )
       test -z "${untracked_files}" || {
-        printf "${RED}The job produced unexpected files:\n${untracked_files}\n\
+        printf "${RED}The job produced unexpected files:\n${untracked_files}
       Update the '.gitignore' file.\n${DEFAULT}"
         exit 1
       }