diff options
author | Daniel Neuhäuser <ich@danielneuhaeuser.de> | 2010-08-10 17:11:11 +0200 |
---|---|---|
committer | Daniel Neuhäuser <ich@danielneuhaeuser.de> | 2010-08-10 17:11:11 +0200 |
commit | 023f342bede78031ff498844033662318af9286d (patch) | |
tree | 901d8c1989131cf38c5d26b8cc96c2d2890e7a61 /sphinx/websupport/storage/differ.py | |
parent | d77cbf3043b88a31424d44538b8b8bb5fdc1e490 (diff) | |
download | sphinx-git-023f342bede78031ff498844033662318af9286d.tar.gz |
Removed trailing whitespace
Diffstat (limited to 'sphinx/websupport/storage/differ.py')
-rw-r--r-- | sphinx/websupport/storage/differ.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/websupport/storage/differ.py b/sphinx/websupport/storage/differ.py index 068d7e6fc..f0b6a8ea5 100644 --- a/sphinx/websupport/storage/differ.py +++ b/sphinx/websupport/storage/differ.py @@ -53,12 +53,12 @@ class CombinedHtmlDiff(object): return text elif prefix == '?': return '' - + if next is not None and next[0] == '?': tag = 'ins' if prefix == '+' else 'del' text = self._highlight_text(text, next, tag) css_class = 'prop_added' if prefix == '+' else 'prop_removed' - + return '<span class="%s">%s</span>\n' % (css_class, text.rstrip()) def _highlight_text(self, text, next, tag): @@ -76,4 +76,3 @@ class CombinedHtmlDiff(object): start = match.end() new_text.append(text[start:]) return ''.join(new_text) - |