Professional Web Applications Themes

Minor bug in RedCloth (?) - Ruby

Hi all, just had RedCloth barf on me with a fairly large doent 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.*/, '

' ) to: nl = (nextline || "").gsub( /^([#*]+)\s.*/, '
' ) 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...

  1. #1

    Default Minor bug in RedCloth (?)


    Hi all,

    just had RedCloth barf on me with a fairly large doent 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 Guest

  2. #2

    Default Re: Minor bug in RedCloth (?)

    Martin Hart wrote: 

    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:sourceforge.net:/cvsroot/yaml4r login
    cvs -z3 -d:pserver:sourceforge.net:/cvsroot/yaml4r co \
    redcloth

    _why




    why Guest

  3. #3

    Default Re: Minor bug in RedCloth (?)

    On Saturday 21 February 2004 17:19, why the lucky stiff wrote: 

    thanks - i have done so and it looks good.

    Cheers,
    Martin




    Martin Guest

Similar Threads

  1. minor followup
    By kingdegen in forum Macromedia Director Basics
    Replies: 1
    Last Post: April 20th, 03:46 PM
  2. Minor GUI bug with Layers palette
    By Scott_Weichert@adobeforums.com in forum Adobe Illustrator Macintosh
    Replies: 5
    Last Post: February 11th, 02:10 AM
  3. Replies: 5
    Last Post: February 7th, 12:54 PM
  4. Minor Annoyance in 4.0 LE
    By Lisa Sexton in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 9
    Last Post: August 13th, 07:41 PM
  5. minor changes to forms in AXP
    By Leon Hoeneveld in forum Microsoft Access
    Replies: 1
    Last Post: July 24th, 12:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •