diff options
author | gbrandl <devnull@localhost> | 2007-03-31 00:43:31 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-03-31 00:43:31 +0200 |
commit | 0fbee11c9b0c60d2ae76f969fb6bb027495cf8c7 (patch) | |
tree | 529758c7d85788e6065ab0d1724473fab08c945e /pygments/formatters/other.py | |
parent | 7d3496625d4a089428461001e990553bbcd1307e (diff) | |
download | pygments-0fbee11c9b0c60d2ae76f969fb6bb027495cf8c7.tar.gz |
[svn] Fix the RawTokenFormatter.
Diffstat (limited to 'pygments/formatters/other.py')
-rw-r--r-- | pygments/formatters/other.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/pygments/formatters/other.py b/pygments/formatters/other.py index 4353c2b2..9422dd23 100644 --- a/pygments/formatters/other.py +++ b/pygments/formatters/other.py @@ -77,13 +77,5 @@ class RawTokenFormatter(Formatter): lasttype = None lastval = u'' for ttype, value in tokensource: - value = repr(value) - if ttype is lasttype: - lastval += value - else: - if lasttype: - write("%s\t%s\n" % (lasttype, lastval)) - lastval = value - lasttype = ttype - write("%s\t%s\n" % (lasttype, lastval)) + write("%s\t%r\n" % (ttype, value)) flush() |