diff --git a/features/step_definitions/steps.rb b/features/step_definitions/steps.rb index e683807c78..031402915f 100644 --- a/features/step_definitions/steps.rb +++ b/features/step_definitions/steps.rb @@ -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!