Package: po4a
Version: 0.47-2

There are some bugs/misfeatures in the handling of markdown with po4a.
The percent prefixed document title and authors (understood by pandoc)
are not properly handled, and a title get a spurious newline.  Here is a
demonstration:

cat > test.md  <<EOF
% The document title
% The document first author; The document second author

A nice title
============

The first paragraph.

The second paragraph.

 * Some bullet point
 * Another bullet point
EOF
% po4a-gettextize -f text -o markdown -m test.md 
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2018-04-05 20:57+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <l...@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#. type: Plain text
#: test.md:3
msgid "% The document title % The document first author; The document second 
author"
msgstr ""

#. type: Title =
#: test.md:5
#, no-wrap
msgid "A nice title\n"
msgstr ""

#. type: Plain text
#: test.md:8
msgid "The first paragraph."
msgstr ""

#. type: Plain text
#: test.md:10
msgid "The second paragraph."
msgstr ""

#. type: Bullet: ' * '
#: test.md:12
msgid "Some bullet point"
msgstr ""

#. type: Bullet: ' * '
#: test.md:12
msgid "Another bullet point"
msgstr ""
%

Note how the title and author (first and second line starting with '%')
are joined togheter as one string.  Also note how '\n' is included at
the end of 'A nice title'.  It should not be there.

If you create a PDF from the markdown file using 'pandoc -t latex
test.md -o test.pdf', you can see how it was intended to be interpreted.
-- 
Happy hacking
Petter Reinholdtsen

Reply via email to