lib/brief/document/source_map.rb in brief-1.17.3 vs lib/brief/document/source_map.rb in brief-1.17.4

- old
+ new

@@ -30,17 +30,20 @@ superior && superior.element end def line_numbers_for_heading(heading_element, include_heading=true) + if heading_element.nil? + binding.pry + end if heading_element.is_a?(String) && heading_element.length > 1 heading_element = heading_element_tags.find do |el| el.attr('data-heading').include?(heading_element.strip.downcase) || el.text.to_s.strip.downcase.include?(heading_element.strip.downcase) end end if heading_element.nil? - return nil + binding.pry end start_index = heading_element.attr('data-line-number').to_i if next_heading = next_sibling_heading_for(heading_element)