diff --git a/lib/twine/formatters/django.rb b/lib/twine/formatters/django.rb index 87d16fe..464d14b 100644 --- a/lib/twine/formatters/django.rb +++ b/lib/twine/formatters/django.rb @@ -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) diff --git a/test/fixtures/formatter_django.po b/test/fixtures/formatter_django.po index 964a8b5..c8c9197 100644 --- a/test/fixtures/formatter_django.po +++ b/test/fixtures/formatter_django.po @@ -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"