ocaml: fix module context in entries

pull/1459/head
Simon Legner 4 years ago
parent 06eba0b8c9
commit d03c98e551

@ -35,7 +35,7 @@ module Docs
def additional_entries def additional_entries
entries = [] entries = []
module_node = css('h1').at_css('span') module_node = at_css('h1')
css('pre > span[id]').each do |span| css('pre > span[id]').each do |span|
if span['id'].start_with?('VAL') if span['id'].start_with?('VAL')
@ -49,7 +49,7 @@ module Docs
end end
name = span.content name = span.content
name += " [#{module_node.content}]" unless module_node.nil? name += " [#{module_node.content}]" if module_node
entries << [name, span['id'], entry_type] entries << [name, span['id'], entry_type]
end end
entries entries

Loading…
Cancel
Save