diff --git a/release/update_manpages.py b/release/update_manpages.py index 9cbb43b6..d1bf8928 100644 --- a/release/update_manpages.py +++ b/release/update_manpages.py @@ -109,10 +109,10 @@ def replace_regex(data): Updated manpage text. """ regex = ( - (r'(It was generated by help2man) [0-9.]+', '\g<1>.'), - (r'^\033\[[0-9;]*m([^\033]*)\033\[m', '\g<1>'), - (r'^\.IP\n(.*:)\n', '.SS \g<1>\n'), - (r'^\.PP\nDescription', '.SH DETAILS'), + (r'(It was generated by help2man) [0-9.]+', r'\g<1>.'), + (r'^\033\[[0-9;]*m([^\033]*)\033\[m', r'\g<1>'), + (r'^\.IP\n(.*:)\n', r'.SS \g<1>\n'), + (r'^\.PP\nDescription', r'.SH DETAILS'), ) for pattern, replacement in regex: data = re.sub(pattern, replacement, data, flags=re.M)