lib/brief/document/structure.rb in brief-1.7.2 vs lib/brief/document/structure.rb in brief-1.7.3

- old
+ new

@@ -152,10 +152,10 @@ def is_header?(element) element.name.to_s.downcase.match(/^h\d$/) end def level(element) - element.name.to_s.gsub(/^h/i, '').to_i + (element && element.name.to_s.gsub(/^h/i, '')).to_i end end end end end