#99 ✓invalid
Jason Garber

Acronyms at the beginning of a line

Reported by Jason Garber | January 15th, 2009 @ 02:50 PM | in 4.1.9

Hello Jason,

I found a bug in RedCloth gem 4.1+. Rendering html with following Redcloth raises an ArgumentError:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, max. 1000 Foos and Bars

... since max is defined somewhere in the C source it's invoked with a parameter.

irb(main):001:0> require 'RedCloth' => true irb(main):002:0> rc = RedCloth.new 'max. 1000' => "max. 1000" irb(main):003:0> rc.to_html ArgumentError: wrong number of arguments (1 for 0)

from /opt/local/lib/ruby/gems/1.8/gems/RedCloth-4.1.1/lib/case_sensitive_require/../redcloth/textile_doc.rb:83:in `max'
from /opt/local/lib/ruby/gems/1.8/gems/RedCloth-4.1.1/lib/case_sensitive_require/../redcloth/textile_doc.rb:83:in `to'
from /opt/local/lib/ruby/gems/1.8/gems/RedCloth-4.1.1/lib/case_sensitive_require/../redcloth/textile_doc.rb:83:in `to_html'
from (irb):3

irb(main):004:0>

I'm not very familiar with C so I only can point it out.

Florian

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket

Pages