diff --git a/lib/jekyll-import/importers/rss.rb b/lib/jekyll-import/importers/rss.rb index e9db745d..532f93ba 100644 --- a/lib/jekyll-import/importers/rss.rb +++ b/lib/jekyll-import/importers/rss.rb @@ -57,12 +57,15 @@ def self.process(options) header[value] = item.send(value) end - output = "" + output = +"" body.each do |row| - output += item.send(row) + output << item.send(row).to_s end + output.strip! + output = item.content_encoded if output.empty? + FileUtils.mkdir_p("_posts") File.open("_posts/#{name}.html", "w") do |f|