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
Martin Hart wrote:
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”
hi martin. sorry bout the bug.
say, do you want to try checking out from redcloth cvs? a number of
bugs have been fixed over the past few weeks (including the one you just
mentioned). give it a whirl, i’m hoping to push out a new version
when… when… we’ll just say next week.
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/yaml4r login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/yaml4r co
redcloth
_why
thanks - i have done so and it looks good.
Cheers,
Martin
···
On Saturday 21 February 2004 17:19, why the lucky stiff wrote:
say, do you want to try checking out from redcloth cvs? a number of
bugs have been fixed over the past few weeks (including the one you just
mentioned). give it a whirl, i’m hoping to push out a new version
when… when… we’ll just say next week.