summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinkham <code@andrewsforge.com>2014-05-06 17:22:05 -0500
committerAndrew Pinkham <code@andrewsforge.com>2014-05-06 17:22:05 -0500
commitfc057fde962e241bad2b948f387f97afaf5b85d1 (patch)
tree98e8baefec061dbb4bab47f4642d371401027b40
parente08365a69976586bc9318568f6e5ec0438c424de (diff)
downloadpygments-fc057fde962e241bad2b948f387f97afaf5b85d1.tar.gz
RTF Formatter: Simplified calculation of output string.
-rw-r--r--tests/test_rtf_formatter.py2
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],