From 40e7a34f284dce67a6f44173dcf965fcec155790 Mon Sep 17 00:00:00 2001 From: Timothy Chilvers Date: Mon, 11 Jan 2021 11:01:08 +0000 Subject: [PATCH] Fix stringsdict header invalid XML format The first declaration in an XML file must be --- lib/twine/formatters/apple_plural.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/twine/formatters/apple_plural.rb b/lib/twine/formatters/apple_plural.rb index c53f02b4..e4c68bb4 100644 --- a/lib/twine/formatters/apple_plural.rb +++ b/lib/twine/formatters/apple_plural.rb @@ -25,10 +25,10 @@ def format_file(lang) end def format_header(lang) - header = "\n" - header += "<\?xml version=\"1.0\" encoding=\"UTF-8\"\?>\n" + header = "<\?xml version=\"1.0\" encoding=\"UTF-8\"\?>\n" header += "\n" header += "\n" + header += "\n" end def format_section_header(section)