From 9ed9c04c53da70828d5594c2a48fcdf1096cdf37 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Sun, 23 Feb 2025 11:36:23 +0000 Subject: [PATCH] Remove Apple unnecessary empty lines Signed-off-by: Roman Tsisyk --- lib/twine/formatters/apple.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/twine/formatters/apple.rb b/lib/twine/formatters/apple.rb index 8aa8623..b5495b6 100644 --- a/lib/twine/formatters/apple.rb +++ b/lib/twine/formatters/apple.rb @@ -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)