result += "%s %s %s " % (raw_surn_data[_PREFIX_IN_LIST],
result += "%s %s%s" % (raw_surn_data[_PREFIX_IN_LIST],
only removed the leading space of
" - ". But it also affects all connectors for other records.
I had added
'-' to line 309 with the same results but not adversely affecting other records.
"""Remove too long white space due to missing name parts,
so "a b" becomes "a b" and "a , b" becomes "a, b"
parts = namestring.split()
if not parts:
result = parts
for val in parts[1:]:
if len(val) == 1 and val in [',', ';', ':', '-',
result += val
result += ' ' + val
Attempting to make changes to
def _raw_full_surname() causes other unwanted changes because as the primary surname construct it has an affect on most if not all other surnames. Looking to add
if/else clauses to take into account a hyphen as a connector was beyond me.
The entire logic of the code is baffling and I am NOT a coder. I can only tweak what others have already written like modifying line 309.
I will either have to live with
" - " or leave the hyphenated names as a single entry.
Thank you for pointing me to that section of the code.