diff options
author | murphy <murphy@rubychan.de> | 2010-05-01 02:58:17 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-05-01 02:58:17 +0000 |
commit | 7bf48ce6cf5c75a2278d6545f02781a79f53ebbb (patch) | |
tree | c0f87f427bf4d8b8a8c56ec1f722367949c8ff5b /lib/coderay/for_redcloth.rb | |
parent | 6f1178b7fb8967dda865433ecb9e309f6cb733e1 (diff) | |
download | coderay-7bf48ce6cf5c75a2278d6545f02781a79f53ebbb.tar.gz |
Got rid of the old streaming system (see #142).
Diffstat (limited to 'lib/coderay/for_redcloth.rb')
-rw-r--r-- | lib/coderay/for_redcloth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/for_redcloth.rb b/lib/coderay/for_redcloth.rb index e439929..2af9082 100644 --- a/lib/coderay/for_redcloth.rb +++ b/lib/coderay/for_redcloth.rb @@ -57,7 +57,7 @@ module CodeRay @in_bc ||= nil format = @in_bc ? :div : :span opts[:text] = unescape(opts[:text]) unless @in_bc - highlighted_code = CodeRay.encode opts[:text], opts[:lang], format, :stream => true + highlighted_code = CodeRay.encode opts[:text], opts[:lang], format highlighted_code.sub!(/\A<(span|div)/) { |m| m + pba(@in_bc || opts) } highlighted_code else |