@staticmethod<EOL><INDENT>def _normalize_merge_diff(diff):<DEDENT>
new_diff = []<EOL>for line in diff.splitlines():<EOL><INDENT>if line.strip():<EOL><INDENT>new_diff.append("<STR_LIT:+>" + line)<EOL><DEDENT><DEDENT>if new_diff:<EOL><INDENT>new_diff.insert(<EOL><NUM_LIT:0>, "<STR_LIT>"<EOL>)<EOL><DEDENT>else:<EOL><INDENT>new_diff.append("<STR_LIT>")<EOL><DEDENT>return "<STR_LIT:\n>".join(new_diff)<EOL>
Make compare_config() for merge look similar to replace config diff.