Skip to content

xmlprettify can cause mangled output #18

Description

@fridgecow

During chapter loads, xmlprettify is called to format the output nicely, and in doing so it strips the text and tail attributes from elements. Unfortunately this can have the unintended consequence of producing mangled epubs from reasonable HTML.

For example, this HTML:

<div>1234 <i>5</i> 6789</div>

should produce output exactly like the input,

<div>1234 <i>5</i> 6789</div>

image

but actually looks like:

  <div>1234
  <i>5</i>6789
</div>

image

Which will be rendered differently since there's no space after the 5.

Removing the xmlprettify call from Chapter._render makes the output correct again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions