Remove wrong indentation from Django header

to be closer to the specification
This commit is contained in:
Sebastian Ludwig 2019-09-23 16:59:44 +02:00
parent 9c70cb5638
commit 8566a0b70e
2 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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"