Remove Apple unnecessary empty lines

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
Roman Tsisyk 2025-02-23 11:36:23 +00:00
parent 89dd0a6b35
commit 9ed9c04c53

View file

@ -65,16 +65,21 @@ module Twine
end end
end end
def format_file(lang)
result = super
result += "\n"
end
def format_section_header(section) def format_section_header(section)
"/********** #{section.name} **********/\n" "\n/********** #{section.name} **********/\n"
end end
def key_value_pattern def key_value_pattern
"\"%{key}\" = \"%{value}\";\n" "\"%{key}\" = \"%{value}\";"
end end
def format_comment(definition, lang) def format_comment(definition, lang)
"/* #{definition.comment.gsub('*/', '* /')} */\n" if definition.comment "\n/* #{definition.comment.gsub('*/', '* /')} */\n" if definition.comment
end end
def format_key(key) def format_key(key)