Page MenuHomePhabricator

Missing "external" div in the first part of epub for long texts
Open, Needs TriagePublic

Description

The problem concerns all texts with the following structure:

<div style="...">
text...
....
</div>

of the length for which the generated epub consists of more than one xhtml.

In the generated epub, consisting of two or more xhtml, in the ebpub edit view:
c0_Title_ca_o__.xhtml:

text part 1...
....

c0_Title_ca_o___2.xhtml:

<div style="...">
text part 2...
....
</div>

c0_Title_ca_o___3.xhtml:

<div style="...">
text part 3...
....
</div>

e.g. Tropy/całość (rest v1 api Tropy/całość)
The generated epub (only in the first xhtml) lacks the external <div style="text-align:justify; position:static;">.
As a result, the justification changes in the epub view:

epub edit view:




This of course moves to the generated pdf and mobi.
There is no problem for a shorter version of the same text Tropy/całość short

It would be great if you could identify and fix it as the problem is affecting many pages on ws.