diff options
author | Andrew Pinkham <code@andrewsforge.com> | 2014-05-06 17:22:05 -0500 |
---|---|---|
committer | Andrew Pinkham <code@andrewsforge.com> | 2014-05-06 17:22:05 -0500 |
commit | fc057fde962e241bad2b948f387f97afaf5b85d1 (patch) | |
tree | 98e8baefec061dbb4bab47f4642d371401027b40 | |
parent | e08365a69976586bc9318568f6e5ec0438c424de (diff) | |
download | pygments-fc057fde962e241bad2b948f387f97afaf5b85d1.tar.gz |
RTF Formatter: Simplified calculation of output string.
-rw-r--r-- | tests/test_rtf_formatter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_rtf_formatter.py b/tests/test_rtf_formatter.py index f396738b..0ac53bfa 100644 --- a/tests/test_rtf_formatter.py +++ b/tests/test_rtf_formatter.py @@ -32,8 +32,8 @@ class RtfFormatterTest(StringTests, unittest.TestCase): u"\t\tActually ended with '{result}'\n" u"\t(WARNING: Partial Output of Result!)") - start = -(len(self._escape(self.foot))+len(expected)) end = -(len(self._escape(self.foot))) + start = end-len(expected) return string.format(t=t, result = result[start:end], |