Commits

blackbird  committed 4c14065

[svn] fixed bug in rtf formatter

  • Participants
  • Parent commits f728ed4
  • Branches trunk

Comments (0)

Files changed (1)

File pygments/formatters/rtf.py

 
         # highlight stream
         for ttype, value in tokensource:
-            while self.style.styles_token(ttype) and ttype.parent:
+            while not self.style.styles_token(ttype) and ttype.parent:
                 ttype = ttype.parent
             style = self.style.style_for_token(ttype)
             buf = []