Remove wrong indentation from Django header
to be closer to the specification
This commit is contained in:
parent
9c70cb5638
commit
8566a0b70e
2 changed files with 5 additions and 5 deletions
|
@ -53,7 +53,8 @@ module Twine
|
|||
end
|
||||
|
||||
def format_header(lang)
|
||||
"##\n # Django Strings File\n # Generated by Twine #{Twine::VERSION}\n # Language: #{lang}\nmsgid \"\"\nmsgstr \"\"\n\"Content-Type: text/plain; charset=UTF-8\\n\""
|
||||
# see https://www.gnu.org/software/trans-coord/manual/gnun/html_node/PO-Header.html for details
|
||||
"# Django Strings File\n# Generated by Twine #{Twine::VERSION}\n# Language: #{lang}\nmsgid \"\"\nmsgstr \"\"\n\"Content-Type: text/plain; charset=UTF-8\\n\""
|
||||
end
|
||||
|
||||
def format_section_header(section)
|
||||
|
|
7
test/fixtures/formatter_django.po
vendored
7
test/fixtures/formatter_django.po
vendored
|
@ -1,7 +1,6 @@
|
|||
##
|
||||
# Django Strings File
|
||||
# Generated by Twine <%= Twine::VERSION %>
|
||||
# Language: en
|
||||
# Django Strings File
|
||||
# Generated by Twine <%= Twine::VERSION %>
|
||||
# Language: en
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
|
|
Reference in a new issue