You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPEchapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
]>
<chapter>
<title>Test</title>
<!-- some comment -->
<screen><userinput>/path/to/command --some-arg</userinput></screen>
</chapter>
test.po:
# 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.##,fuzzymsgid ""msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2021-02-20 15:02+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. type: Content of: <chapter><title>#:test.xml:7msgid"Test"msgstr"测试"#. some comment #. type: Content of: <chapter><screen>#:test.xml:11#, no-wrapmsgid"<userinput>/path/to/command --some-arg</userinput>"msgstr"<userinput>/path/to/command --some-arg</userinput>"
The output of po4a-translate -f docbook -m test.xml -p test.po is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPEchapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
]>
<chapter>
<title>测试</title>
<screen><!-- some comment -->
<userinput>/path/to/command --some-arg</userinput></screen>
</chapter>
Now we have a leading empty line in the box, if we convert it to a HTML page.
The text was updated successfully, but these errors were encountered:
test.xml
:test.po
:The output of
po4a-translate -f docbook -m test.xml -p test.po
is:Now we have a leading empty line in the box, if we convert it to a HTML page.
The text was updated successfully, but these errors were encountered: