diff --git a/tools/lint/spell/__init__.py b/tools/lint/spell/__init__.py index de4017e3d182..2ca49bb8409d 100644 --- a/tools/lint/spell/__init__.py +++ b/tools/lint/spell/__init__.py @@ -60,7 +60,7 @@ class CodespellProcess(ProcessHandlerMixin): if m: return res = {'path': abspath, - 'message': typo + " ==> " + correct, + 'message': typo.strip() + " ==> " + correct, 'level': 'error', 'lineno': line, }