From fbb7e523045d94ea8bb46984cfb7afde8f82dba8 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 14 Nov 2025 14:46:50 +0100 Subject: [PATCH] Avoid splitting file names across lines in problem reports Signed-off-by: Gilles Peskine --- scripts/check_names.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/check_names.py b/scripts/check_names.py index d8605f689..3d2ce1b42 100755 --- a/scripts/check_names.py +++ b/scripts/check_names.py @@ -99,7 +99,8 @@ class Problem(abc.ABC): # pylint: disable=too-few-public-methods # Class variable to control the quietness of all problems quiet = False def __init__(self): - self.textwrapper = textwrap.TextWrapper() + self.textwrapper = textwrap.TextWrapper(break_on_hyphens=False, + break_long_words=False) self.textwrapper.width = 80 self.textwrapper.initial_indent = " > " self.textwrapper.subsequent_indent = " "