diff --git a/ocrmypdf/main.py b/ocrmypdf/main.py index b6f66d3e..a46f9bce 100755 --- a/ocrmypdf/main.py +++ b/ocrmypdf/main.py @@ -881,7 +881,7 @@ def available_cpu_count(): def cleanup_ruffus_error_message(msg): msg = re.sub(r'\s+', r' ', msg, re.MULTILINE) - msg = re.sub(r"\((.+?)\)", r'\1', msg, re.MULTILINE) + msg = re.sub(r"\((.+?)\)", r'\1', msg) msg = msg.strip() return msg