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
def format_file(lang)
result = super
result += "\n"
end
def format_section_header(section)
"/********** #{section.name} **********/\n"
"\n/********** #{section.name} **********/\n"
end
def key_value_pattern
"\"%{key}\" = \"%{value}\";\n"
"\"%{key}\" = \"%{value}\";"
end
def format_comment(definition, lang)
"/* #{definition.comment.gsub('*/', '* /')} */\n" if definition.comment
"\n/* #{definition.comment.gsub('*/', '* /')} */\n" if definition.comment
end
def format_key(key)