diff --git a/addons/misra.py b/addons/misra.py index 0e649adf0..a45707b8d 100755 --- a/addons/misra.py +++ b/addons/misra.py @@ -4063,7 +4063,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)