Remove unnecessary '\n' from the generated gettext localization files.
This commit is contained in:
parent
094ba47ac8
commit
cd0735b39d
2 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ module Twine
|
|||
end
|
||||
|
||||
def format_header(lang)
|
||||
"msgid \"\"\nmsgstr \"\"\n\"Language: #{lang}\\n\"\n\"X-Generator: Twine #{Twine::VERSION}\\n\"\n"
|
||||
"msgid \"\"\nmsgstr \"\"\n\"Language: #{lang}\"\n\"X-Generator: Twine #{Twine::VERSION}\"\n"
|
||||
end
|
||||
|
||||
def format_section_header(section)
|
||||
|
|
4
test/fixtures/formatter_gettext.po
vendored
4
test/fixtures/formatter_gettext.po
vendored
|
@ -1,7 +1,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Language: en\n"
|
||||
"X-Generator: Twine <%= Twine::VERSION %>\n"
|
||||
"Language: en"
|
||||
"X-Generator: Twine <%= Twine::VERSION %>"
|
||||
|
||||
|
||||
# SECTION: Section 1
|
||||
|
|
Reference in a new issue