Skip to content

Commit

Permalink
note structure (currently?) insignificant to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Jun 8, 2015
1 parent af5b9e0 commit 099925b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/step_definitions/steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def normalize(o)
item['itemID'] = i
item.delete('itemID')
item['attachments'].each{|a| a.delete('path')} if item['attachments']
item['note'] = Nokogiri::HTML(item['note']).inner_text.strip if item['note']
item['note'] = Nokogiri::HTML(item['note']).inner_text.gsub(/[\s\n]+/, ' ').strip if item['note']
}
renum.call(library, newID, false)
library.normalize!
Expand Down

0 comments on commit 099925b

Please sign in to comment.