Package: po4a
Version: 0.67-2
Severity: important
Affects: linuxcnc-uspace

We discovered this in the linuxcnc project, where suddenly the POT file
would have mangled entires for table headers.

For some tables, the po4a AsciiDoc handler will will remove the last
character of the entry.  Run these commands to reproduce the problem:

cat > test.adoc <<EOF
[width="100%",cols="4,16",options="header"]
|===
|Name|Description
|C|This button clears the live plot.
|===
EOF

cat > po4a.cfg <<EOF
[options] --master-charset UTF-8 --localized-charset=UTF-8
[po4a_langs] es
[po4a_paths] project.pot :project_$lang.po
[po4a_alias:AsciiDoc_def] AsciiDoc opt:"--option 'entry=lang' --option 
'tablecells'"
[type: AsciiDoc_def] test.adoc :test_$lang.adoc
EOF

po4a po4a.cfg


The resulting project.pot contain the unwanted 'Nam' entry, and lack the
expected 'Name' entry:


# 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: 2022-09-11 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=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. type: Table
#: test.adoc:3
#, no-wrap
msgid "Nam"
msgstr ""

#. type: Table
#: test.adoc:4
#, no-wrap
msgid "Description"
msgstr ""

#. type: Table
#: test.adoc:4
#, no-wrap
msgid "C"
msgstr ""

#. type: Table
#: test.adoc:5
#, no-wrap
msgid "This button clears the live plot."
msgstr ""

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to