Align whitespacing settings for consume-*
commands with our needs
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
parent
649967b71e
commit
2853ae7367
1 changed files with 16 additions and 13 deletions
|
@ -213,24 +213,27 @@ module Twine
|
|||
f.puts "[[#{section.name}]]"
|
||||
|
||||
section.definitions.each do |definition|
|
||||
f.puts "\t[#{definition.key}]"
|
||||
f.puts ""
|
||||
f.puts " [#{definition.key}]"
|
||||
|
||||
if definition.raw_comment and definition.raw_comment.length > 0
|
||||
f.puts " comment = #{definition.raw_comment}"
|
||||
end
|
||||
if definition.tags && definition.tags.length > 0
|
||||
tag_str = definition.tags.join(',')
|
||||
f.puts " tags = #{tag_str}"
|
||||
end
|
||||
if definition.reference_key
|
||||
f.puts " ref = #{definition.reference_key}"
|
||||
end
|
||||
|
||||
value = write_value(definition, dev_lang, f)
|
||||
if !value && !definition.reference_key
|
||||
Twine::stdout.puts "WARNING: #{definition.key} does not exist in developer language '#{dev_lang}'"
|
||||
end
|
||||
|
||||
if definition.reference_key
|
||||
f.puts "\t\tref = #{definition.reference_key}"
|
||||
end
|
||||
if definition.tags && definition.tags.length > 0
|
||||
tag_str = definition.tags.join(',')
|
||||
f.puts "\t\ttags = #{tag_str}"
|
||||
end
|
||||
if definition.raw_comment and definition.raw_comment.length > 0
|
||||
f.puts "\t\tcomment = #{definition.raw_comment}"
|
||||
end
|
||||
|
||||
@language_codes[1..-1].each do |lang|
|
||||
next if lang == 'zh-MO' || lang == 'zh-TW'
|
||||
write_value(definition, lang, f)
|
||||
end
|
||||
end
|
||||
|
@ -248,7 +251,7 @@ module Twine
|
|||
value = '`' + value + '`'
|
||||
end
|
||||
|
||||
file.puts "\t\t#{language} = #{value}"
|
||||
file.puts " #{language} = #{value}"
|
||||
return value
|
||||
end
|
||||
|
||||
|
|
Reference in a new issue