diff options
author | murphy <murphy@rubychan.de> | 2006-03-21 14:46:34 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-03-21 14:46:34 +0000 |
commit | a3b4ad06b992bd418a1d34bfb271c09fd9bedf11 (patch) | |
tree | 722d341f4065b4614b2cfc55cee6ccd3c66fb69a /lib/coderay/encoders/html/output.rb | |
parent | 13255135d7539fd542cf831d6a98f1ba8a5d43ae (diff) | |
download | coderay-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.rb | 4 |
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"
|