Ticket #36 (assigned defect)
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'
