Skip to content

Commit

Permalink
handle nil siblings
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Dec 22, 2011
1 parent 5d6586e commit b25caf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ronn/document.rb
Expand Up @@ -461,6 +461,7 @@ def html_filter_manual_reference_links
next if child_of?(node, 'a')
next unless node.inner_text =~ /^#{name_pattern}$/
sibling = node.next
next unless sibling
next unless sibling.text?
next unless sibling.content =~ /^\((\d+\w*)\)/
node.swap(html_build_manual_reference_link(node, "(#{$1})"))
Expand Down

0 comments on commit b25caf5

Please sign in to comment.