Ticket #1120: fix_proposal2_r2113.patch

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

This is my workaround for this issue, fight one :)

  • 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: