summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-02-18 19:39:26 +0000
committermurphy <murphy@rubychan.de>2009-02-18 19:39:26 +0000
commitdf8bccf987e636d442e43f8c704d750f6519bd3f (patch)
tree392bef3e25fc876b94bb5cc552033f3d9e24d5d3 /lib
parent89c23fd2685f0a99993877ad7a0a576d56e75c62 (diff)
downloadcoderay-df8bccf987e636d442e43f8c704d750f6519bd3f.tar.gz
Fixed a bug in for_redcloth.rb (closes #87).
* No more closing PRE tags in RedCloth output. * Added j, j19, and test:functional:all tasks.
Diffstat (limited to 'lib')
-rw-r--r--lib/README1
-rw-r--r--lib/coderay/for_redcloth.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/README b/lib/README
index 6426958..2a558c3 100644
--- a/lib/README
+++ b/lib/README
@@ -88,6 +88,7 @@ Please report errors in this documentation to <murphy rubychan de>.
* Jonathan Younger for pointing out the licence confusion caused by wrong LICENSE file.
* Jeremy Hinegardner for finding the shebang-on-empty-file bug in FileType.
* Charles Oliver Nutter and Yehuda Katz for helping me benchmark CodeRay on JRuby.
+* Andreas Neuhaus for pointing out a markup bug in coderay/for_redcloth.
* The folks at redmine.org - thank you for using and fixing CodeRay!
* matz and all Ruby gods and gurus
* The inventors of: the computer, the internet, the true color display, HTML &
diff --git a/lib/coderay/for_redcloth.rb b/lib/coderay/for_redcloth.rb
index dde00cc..f5dcf3f 100644
--- a/lib/coderay/for_redcloth.rb
+++ b/lib/coderay/for_redcloth.rb
@@ -48,6 +48,7 @@ module CodeRay
opts[:lang] ? '' : "<pre#{pba(opts)}>"
end
def bc_close(opts) # :nodoc:
+ opts = @in_bc
@in_bc = nil
opts[:lang] ? '' : "</pre>\n"
end