Ticket #1120: fix_proposal_3_r2113.patch

File fix_proposal_3_r2113.patch, 0.6 kB (added by mape, 1 year ago)

This is right one (I would need ticket admin rights to replace invalid attachments)

  • tracpygments/__init__.py

    old new  
    210210            self._languages = {} 
    211211            if have_pygments: 
    212212                for name, aliases, _, mimetypes in get_all_lexers(): 
     213                    if in ['reStructuredText','Diff']: 
     214                        continue 
    213215                    for mimetype in mimetypes: 
    214216                        self._types[mimetype] = (aliases[0], self.QUALITY_RATIO) 
    215217                    for alias in aliases: