Ticket #36 (assigned defect)

Opened 3 years ago

Last modified 2 years ago

Exception in debug line when $DEBUG enabled

Reported by: marek@… Owned by: deveiant
Priority: high Milestone: Bugfixes
Component: API Version: 1.0.0
Severity: major Keywords:
Cc:

Description

When executing a program in DEBUG mode (-d flag), error occurs when creating a BlueCloth document: ArgumentError?: too many arguments for format string Backtrace: /usr/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:969:in `%' /usr/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:969:in `transform_images' /usr/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:266:in `apply_span_transforms' /usr/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:731:in `form_paragraphs' /usr/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:723:in `collect' /usr/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:723:in `form_paragraphs' /usr/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:252:in `apply_block_transforms' /usr/lib/ruby/gems/1.8/gems/BlueCloth-1.0.0/lib/bluecloth.rb:204:in `to_html'

The offending line has obvious error: '@…g " Transforming images " % str' should be changed to: '@…g " Transforming images %s" % str'

Change History

Changed 3 years ago by deveiant

  • status changed from new to assigned
  • milestone set to Markdown 1.0.1

Thanks for the report.

Changed 2 years ago by deveiant

  • milestone changed from Markdown 1.0.1 to Bugfixes
Note: See TracTickets for help on using tickets.