Commit 74f467c7 authored by Stefan Behnel's avatar Stefan Behnel

tweak templating in annotated code writer some more

parent 59d09fd4
......@@ -167,13 +167,9 @@ class AnnotationCCodeWriter(CCodeWriter):
score = (5 * calls['py_c_api'] + 2 * calls['pyx_c_api'] +
calls['py_macro_api'] + calls['pyx_macro_api'])
outlist.append(u"<pre class='cython line score-%s' onclick='toggleDiv(this)'>" % score)
outlist.append(u" %d: " % k)
outlist.append(line.rstrip())
outlist.append(u'</pre>\n')
outlist.append(u"<pre class='cython code score-%s' >%s</pre>" % (score, code))
outlist.append(u"<pre class='cython line score-%s' onclick='toggleDiv(this)'> %d: %s</pre>\n" % (
score, k, line.rstrip()))
outlist.append(u"<pre class='cython code score-%s'>%s</pre>" % (score, code))
return outlist
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment