From 3c7d6ebce5d3164c99181254818fc2511b9d775e Mon Sep 17 00:00:00 2001 From: DaveSch-gramps Date: Sat, 11 Nov 2023 13:44:28 -0500 Subject: [PATCH] Fixes hyphenated surnames in name displayer Strip spaces around a hyphen, so for example, "Smith - Jones" is cleaned up to become "Smith-Jones". Fixes #13086. --- gramps/gen/display/name.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/display/name.py b/gramps/gen/display/name.py index d6807781d19..506c97b8b79 100644 --- a/gramps/gen/display/name.py +++ b/gramps/gen/display/name.py @@ -372,6 +372,8 @@ def cleanup_name(namestring): result += val else: result += " " + val + + result = result.replace(" - ", "-") return result