View difference between Paste ID: QH2YE8ki and
SHOW: | | - or go back to the newest paste.
1-
1+
fix = re.compile(r'((?<=>)(\n[\t]*)(?=[^<\t]))|(?<=[^>\t])(\n[\t]*)(?=<)')
2
fixed_output = re.sub(fix, '', input_string)