M
Martin Hart
Hi all,
just had RedCloth barf on me with a fairly large document and a bullet list at
the end of it. The error was "Exception `NoMethodError' at
/usr/local/lib/ruby/site_ruby/1.8/redcloth.rb:376 - private method `gsub'
called for nil:NilClass"
Changing line 376 of redcloth.rb from:
nl = nextline.gsub( /^([#*]+)\s.*/, '\1' )
to:
nl = (nextline || "").gsub( /^([#*]+)\s.*/, '\1' )
seems to fix the problem - although i have not investigated any further than
that.
Cheers,
Martin
--
Martin Hart
Arnclan Limited
53 Union Street
Dunstable, Beds
LU6 1EX
http://www.arnclan.com
just had RedCloth barf on me with a fairly large document and a bullet list at
the end of it. The error was "Exception `NoMethodError' at
/usr/local/lib/ruby/site_ruby/1.8/redcloth.rb:376 - private method `gsub'
called for nil:NilClass"
Changing line 376 of redcloth.rb from:
nl = nextline.gsub( /^([#*]+)\s.*/, '\1' )
to:
nl = (nextline || "").gsub( /^([#*]+)\s.*/, '\1' )
seems to fix the problem - although i have not investigated any further than
that.
Cheers,
Martin
--
Martin Hart
Arnclan Limited
53 Union Street
Dunstable, Beds
LU6 1EX
http://www.arnclan.com