lib/minisyntax/highlighter/haml.rb in minisyntax-0.2.2 vs lib/minisyntax/highlighter/haml.rb in minisyntax-0.2.3
- old
+ new
@@ -7,10 +7,10 @@
tag = $2
classes_and_id = $3
options = $5
ruby = $8
result << %Q(<em>#{tag}</em>) if tag
- result << %Q(<b>#{classes_and_id}</b>) unless classes_and_id.blank?
+ result << %Q(<b>#{classes_and_id}</b>) unless classes_and_id.empty?
result << options if options
result << MiniSyntax.highlight(ruby, :ruby) if ruby
result
end
code.gsub! /^(( )*)(-(.+?))$/ do