From 69fd5c21a2ac3e953114191ad2660379db88fd44 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 12 Jul 2021 14:29:35 +0200 Subject: diff: Fix spacing issue --- paper/diffinator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper/diffinator.py b/paper/diffinator.py index ad3b2fb..5c26d35 100644 --- a/paper/diffinator.py +++ b/paper/diffinator.py @@ -57,8 +57,8 @@ def generate_git_tex_diff(texfile, bibliography, revision): line = line.rstrip() if document_started: # diff results in preamble - line = addition_re.sub(r'\\color{diffgreen}\1 \\color{black}', line) - line = deletion_re.sub(r'\\color{diffred}\1 \\color{black}', line) + line = addition_re.sub(r' \\color{diffgreen}\1 \\color{black}', line) + line = deletion_re.sub(r' \\color{diffred}\1 \\color{black}', line) else: if '\\begin{document}' in line: -- cgit