From e0bc871bae20d0b6ca82e6720453555a1ed11d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 8 Jul 2022 16:11:15 +0200 Subject: [PATCH] misra.py: strip error message so it does not end with \r --- addons/misra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/misra.py b/addons/misra.py index d24ea0d3f..48dcf2d13 100755 --- a/addons/misra.py +++ b/addons/misra.py @@ -4064,7 +4064,7 @@ class MisraChecker: if self.path_premium_addon: for line in cppcheckdata.cmd_output([self.path_premium_addon, '--cli', '--get-rule-text=' + errorId]).split('\n'): if len(line) > 1 and not line.startswith('{'): - errmsg = line + errmsg = line.strip() break else: errmsg = 'misra violation %s with no text in the supplied rule-texts-file' % (ruleNum)