#92 ✓resolved
Edward Waller

Can't turn "next. " into html

Reported by Edward Waller | November 27th, 2008 @ 11:52 PM | in 4.1.9

When trying to convert a comment on my site into html, using the to_html method, RedCloth seems to have choked on the input. I narrowed the problem down to the following example.


>> require 'redcloth'
=> true
>> RedCloth::VERSION
=> 4.1.1
>> RedCloth.new("next. ").to_html
ArgumentError: wrong number of arguments (1 for 0)
	from /Library/Ruby/Gems/1.8/gems/RedCloth-4.1.1/lib/redcloth/textile_doc.rb:83:in `next'
	from /Library/Ruby/Gems/1.8/gems/RedCloth-4.1.1/lib/redcloth/textile_doc.rb:83:in `to'
	from /Library/Ruby/Gems/1.8/gems/RedCloth-4.1.1/lib/redcloth/textile_doc.rb:83:in `to_html'
	from (irb):2

>> RedCloth.new("next.").to_html
=> "<p>next.</p>"
>> RedCloth.new("next..").to_html
=> "<p>next..</p>"
>> RedCloth.new("next.. ").to_html
ArgumentError: wrong number of arguments (1 for 0)
	from /Library/Ruby/Gems/1.8/gems/RedCloth-4.1.1/lib/redcloth/textile_doc.rb:83:in `next'
	from /Library/Ruby/Gems/1.8/gems/RedCloth-4.1.1/lib/redcloth/textile_doc.rb:83:in `to'
	from /Library/Ruby/Gems/1.8/gems/RedCloth-4.1.1/lib/redcloth/textile_doc.rb:83:in `to_html'
	from (irb):5

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

Tags

Referenced by

Pages