diff options
author | Jacob Mason <jacoblmason@gmail.com> | 2010-08-13 12:15:12 -0500 |
---|---|---|
committer | Jacob Mason <jacoblmason@gmail.com> | 2010-08-13 12:15:12 -0500 |
commit | 3717927c83794ebfdd08832b8c53946754a1193c (patch) | |
tree | 05f1345ce0137e9e137e047798e5b5cf0ee5a27b /sphinx/websupport/storage/differ.py | |
parent | 5be29e0894ec4e2ca3cf1894ae9aaa94a612745b (diff) | |
download | sphinx-git-3717927c83794ebfdd08832b8c53946754a1193c.tar.gz |
fixed bug in CombinedHtmlDiffer that clipped the last line.
Diffstat (limited to 'sphinx/websupport/storage/differ.py')
-rw-r--r-- | sphinx/websupport/storage/differ.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/websupport/storage/differ.py b/sphinx/websupport/storage/differ.py index f0b6a8ea5..8d6c4a497 100644 --- a/sphinx/websupport/storage/differ.py +++ b/sphinx/websupport/storage/differ.py @@ -40,9 +40,9 @@ class CombinedHtmlDiff(object): try: next = diff.pop(0) except IndexError: - self._handle_line(line) + html.append(self._handle_line(line)) break - return ''.join(html) + return ''.join(html).rstrip() def _handle_line(self, line, next=None): """Handle an individual line in a diff.""" |