Annotation fix.
authorRobert Bradshaw <robertwb@math.washington.edu>
Sun, 21 Feb 2010 05:06:12 +0000 (21:06 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sun, 21 Feb 2010 05:06:12 +0000 (21:06 -0800)
Cython/Compiler/Annotate.py

index d252fda617a2a72158a10520f15f1236b5d0fd5f..3a3760974d25e492869e5bdbc37f9e48b42ccc5c 100644 (file)
@@ -143,7 +143,9 @@ function toggleDiv(id) {
                 code = self.code[k]
             except KeyError:
                 code = ''
-                
+            
+            code = code.replace('<', '<code><</code>')
+            
             code, py_c_api_calls = py_c_api.subn(ur"<span class='py_c_api'>\1</span>(", code)
             code, pyx_c_api_calls = pyx_c_api.subn(ur"<span class='pyx_c_api'>\1</span>(", code)
             code, py_macro_api_calls = py_marco_api.subn(ur"<span class='py_macro_api'>\1</span>(", code)