Permalink
Browse files

Tidied up indentation

  • Loading branch information...
1 parent 8c35cc9 commit 00a0d14702e26cd51c36125aaf81e84fe648a626 @richbecks richbecks committed Jul 4, 2011
Showing with 9 additions and 9 deletions.
  1. +9 −9 lib/jekyll/migrators/wordpressdotcom.rb
@@ -18,18 +18,18 @@ def self.process(filename = "wordpress.xml")
title = item.at(:title).inner_text.strip
permalink_title = item.at('wp:post_name').inner_text
# Fallback to "prettified" title if post_name is empty (can happen)
- if permalink_title == ""
- permalink_title = title.downcase.split.join('-')
- end
+ if permalink_title == ""
+ permalink_title = title.downcase.split.join('-')
+ end
date = Time.parse(item.at('wp:post_date').inner_text)
status = item.at('wp:status').inner_text
- if status == "publish"
- published = true
- else
- published = false
- end
+ if status == "publish"
+ published = true
+ else
+ published = false
+ end
type = item.at('wp:post_type').inner_text
tags = (item/:category).map{|c| c.inner_text}.reject{|c| c == 'Uncategorized'}.uniq
@@ -59,7 +59,7 @@ def self.process(filename = "wordpress.xml")
f.puts item.at('content:encoded').inner_text
end
- import_count[type] += 1
+ import_count[type] += 1
end
import_count.each do |key, value|

0 comments on commit 00a0d14

Please sign in to comment.