diff options
Diffstat (limited to 'paper')
-rw-r--r-- | paper/diffinator.py | 4 |
1 files 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: |