Strip the old text for configdiff
This means we don't report an unneeded whitespace hunk anymore.
This commit is contained in:
parent
2afd7549bc
commit
0ae1f5909d
@ -742,8 +742,10 @@ def get_diff():
|
||||
continue
|
||||
dest.append(line.rstrip())
|
||||
|
||||
conf_delta = difflib.unified_diff(OLD_CONF.splitlines(), old_conf_lines)
|
||||
key_delta = difflib.unified_diff(OLD_KEYS_CONF.splitlines(), old_key_lines)
|
||||
conf_delta = difflib.unified_diff(OLD_CONF.lstrip().splitlines(),
|
||||
old_conf_lines)
|
||||
key_delta = difflib.unified_diff(OLD_KEYS_CONF.lstrip().splitlines(),
|
||||
old_key_lines)
|
||||
|
||||
conf_diff = '\n'.join(conf_delta)
|
||||
key_diff = '\n'.join(key_delta)
|
||||
|
Loading…
Reference in New Issue
Block a user