Add footer for newlines in Apple
This commit is contained in:
parent
b79bbc37a6
commit
20a57301f7
2 changed files with 9 additions and 5 deletions
|
@ -65,6 +65,15 @@ module Twine
|
|||
end
|
||||
end
|
||||
|
||||
def format_footer(lang)
|
||||
"\n"
|
||||
end
|
||||
|
||||
def format_file(lang)
|
||||
result = super
|
||||
result += format_footer(lang)
|
||||
end
|
||||
|
||||
def format_section_header(section)
|
||||
"\n/********** #{section.name} **********/"
|
||||
end
|
||||
|
|
|
@ -21,11 +21,6 @@ module Twine
|
|||
footer = "\n</dict>\n</plist>\n"
|
||||
end
|
||||
|
||||
def format_file(lang)
|
||||
result = super
|
||||
result += format_footer(lang)
|
||||
end
|
||||
|
||||
def format_header(lang)
|
||||
header = "<\?xml version=\"1.0\" encoding=\"UTF-8\"\?>\n"
|
||||
header += "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n"
|
||||
|
|
Reference in a new issue