Permalink
Browse files

removed tabs from output

  • Loading branch information...
1 parent bc075c2 commit 86401eb8f99552dd5b4ef7d9e265518d376c4882 @kristianmandrup committed Jan 18, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/generators/localized_language_select/import/content_helper.rb
View
14 lib/generators/localized_language_select/import/content_helper.rb
@@ -2,14 +2,14 @@ module Import
module ContentHelper
def languages_yaml_content
languages.inject([]) do |output, language|
- output << "\t\t#{language[:code]}: \"#{language[:name]}\""
+ output << " #{language[:code]}: \"#{language[:name]}\""
output
end.join("\n")
end
def languages_hash_content
languages.inject([]) do |output, language|
- output << "\t\t:#{language[:code]} => \"#{language[:name]}\","
+ output << " :#{language[:code]} => \"#{language[:name]}\","
output
end.join("\n")
end
@@ -20,7 +20,7 @@ def get_output
def yaml_output
%Q{#{locale}:
-\tlanguages:
+ languages:
#{languages_yaml_content}
}
end
@@ -29,11 +29,11 @@ def yaml_output
def hash_output
output = <<HASH
{
-\t:#{lang} => {
-\t\t:languages => {
+ :#{lang} => {
+ :languages => {
#{languages_hash_content}
-\t\t\t}
-\t}
+ }
+ }
}
HASH
end

0 comments on commit 86401eb

Please sign in to comment.