summaryrefslogtreecommitdiff
path: root/pygments/formatters/html.py
diff options
context:
space:
mode:
authorblackbird <devnull@localhost>2006-10-30 16:33:40 +0100
committerblackbird <devnull@localhost>2006-10-30 16:33:40 +0100
commit12c0c95e3ff6bb2f1e28d90fd5e6cb04551d853a (patch)
treeda953331445ccfffe02e3ef70ff7f5e2f01fe5b0 /pygments/formatters/html.py
parent19c5b33a63103073244ec6294a2b42d4b3279662 (diff)
downloadpygments-12c0c95e3ff6bb2f1e28d90fd5e6cb04551d853a.tar.gz
[svn] this commit removes the javascript toggle functionality from the html formatter. I'm not sure if this is a good idea, maybe we should make that configurable in a formatter option but i think nobody would use it.
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r--pygments/formatters/html.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py
index 782fb2c7..00723ede 100644
--- a/pygments/formatters/html.py
+++ b/pygments/formatters/html.py
@@ -260,10 +260,8 @@ class HtmlFormatter(Formatter):
for i in range(fl, fl + lncount)])
ret = div + ('<table><tr>'
- '<td class="linenos" title="click to toggle" '
- 'onclick="with (this.firstChild.style) { display = '
- '''(display == '') ? 'none' : '' }"><pre>'''
- + ls + '</pre></td><td class="code">')
+ '<td class="linenos"><pre>' +
+ ls + '</pre></td><td class="code">')
ret += outfile.getvalue()
ret += '</td></tr></table>'