﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
13341,Syntax Highlighting not preserved,ntmlod,Kate,"The issue is perhaps related to a different release of Trac or Pygments, I don't know.

My CSS rules for syntax highlighting with `<pre>` tag expect that this tag is contain inside a `<div class=""code"">` but here we have a `<div class=""searchable"">`.

So I code this raw fix
{{{#!diff
--- precodebrowser/precodebrowser.py	(révision 17009)
+++ precodebrowser/precodebrowser.py	(copie de travail)
@@ -11,7 +11,7 @@
     # ITemplateStreamFilter methods
     def filter_stream(self, req, method, filename, stream, data):
         filter = Transformer('//table[@class = ""code""]')
-        return stream | filter.rename('pre') \
+        return stream | Transformer('//div[@id = ""preview""]').attr('class', 'searchable code') | filter.rename('pre') \
             .select('//pre[@class = ""code""]/thead').remove().end() \
             .select('//pre[@class = ""code""]/tbody/tr/th').remove().end() \
             .select('//pre[@class = ""code""]/tbody/tr/td').append('\n').unwrap()
}}}",defect,new,normal,PreCodeBrowserPlugin,normal,,,,1.0
