Skip to content

Commit

Permalink
Fix creating name
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Jun 28, 2013
1 parent ba0f1a2 commit 84e6ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/fiparse/src/textinfo_hpricot.rb
Expand Up @@ -64,7 +64,7 @@ def extract(doc, type=:fi, name=nil, styles = nil)
paragraph_tag = 'div.paragraph'
when :swissmedicinfo
raise "MustPassNameToExtract" unless name
@name = name
@name = simple_chapter(name)
paragraph_tag = "p[@id^='section']"
else
@name = simple_chapter(doc.at('h1'))
Expand Down

0 comments on commit 84e6ce0

Please sign in to comment.