summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/html/output.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-03-21 14:46:34 +0000
committermurphy <murphy@rubychan.de>2006-03-21 14:46:34 +0000
commita3b4ad06b992bd418a1d34bfb271c09fd9bedf11 (patch)
tree722d341f4065b4614b2cfc55cee6ccd3c66fb69a /lib/coderay/encoders/html/output.rb
parent13255135d7539fd542cf831d6a98f1ba8a5d43ae (diff)
downloadcoderay-a3b4ad06b992bd418a1d34bfb271c09fd9bedf11.tar.gz
CodeRay::Duo added for cool caching!
bench/caching.rb added t“for demonstrating this. HTML Encoder: creates unwrapped output by default (still problems with that.) Numerizing changed (doesn't try to prevent nesting errors) Speedup: "::String" is faster.
Diffstat (limited to 'lib/coderay/encoders/html/output.rb')
-rw-r--r--lib/coderay/encoders/html/output.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/encoders/html/output.rb b/lib/coderay/encoders/html/output.rb
index 8096dc8..80ab4f1 100644
--- a/lib/coderay/encoders/html/output.rb
+++ b/lib/coderay/encoders/html/output.rb
@@ -158,10 +158,10 @@ module CodeRay
DIV
TABLE = <<-`TABLE`
-<table class="CodeRay"> <tr>
+<table class="CodeRay"><tr>
<td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre><%LINE_NUMBERS%></pre></td>
<td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }"><%CONTENT%></pre></td>
-</tr> </table>
+</tr></table>
TABLE
# title="double click to expand"