Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF and Plain text outputs are missing document titles #66

Open
jkoshy opened this issue Sep 27, 2020 · 2 comments
Open

PDF and Plain text outputs are missing document titles #66

jkoshy opened this issue Sep 27, 2020 · 2 comments

Comments

@jkoshy
Copy link
Contributor

jkoshy commented Sep 27, 2020

As seen in Ebook 63231.

% ebookmaker --version
EbookMaker 0.9.7

The following invocation was used to generate the outputs in this ticket:

% ebookmaker --make txt.utf-8 --output-dir=/tmp/PG input.rst

Base Case: (No Bug)

Input Text

==============
Level 1 Header
==============

Some text.

Generated content of /tmp/PG/No title-0.txt

                             Level 1 Header


Some text.

Bug 1: Adding a [pg NN] element changes the handling of the header element

Input

[pg 1]

==============
Level 1 Header
==============

Some text.

Generated content of /tmp/PG/No title-0.txt


[pg 1]




Level 1 Header


Some text.

Bug 2: The header disappears if a footnotes directive is then added.

Input

[pg 1]

==============
Level 1 Header
==============

Some text.

.. footnotes::

Generated content of /tmp/PG/No title-0.txt


[pg 1]

Some text.

This is the current state of Ebook 63231.

The footnotes directive does not remove the title if the [pg NN] element is not present.

Input

==============
Level 1 Header
==============

Some text.

.. footnotes::

Generated content of /tmp/PG/No title-0.txt

                             Level 1 Header


Some text.
@eshellman
Copy link
Collaborator

Are the bugs also present in the pdf output?

@jkoshy
Copy link
Contributor Author

jkoshy commented Sep 29, 2020

PDF output also has the bug, e.g. the generated PDF for Ebook 63231.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants