#37204: Building the epub version of the docs results in an invalid epub with
errors on pages with console directives
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Natalia
| Bidart
Type: Bug | Status: closed
Component: Documentation | Version: 6.0
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):
* resolution: => fixed
* status: assigned => closed
Comment:
In [changeset:"c087b7e8c169f009ff6113647685df4ea9fefe88" c087b7e8]:
{{{#!CommitTicketReference repository=""
revision="c087b7e8c169f009ff6113647685df4ea9fefe88"
Fixed #37204 -- Rendered console directives as plain code in epub docs
builds.
The console directive renders its Unix/Windows tabs with browser-only
markup: hidden radio inputs toggled via CSS. The epub builder shares the
HTML format, so it copied that markup into the ebook, where the tabs
cannot work (e-readers do not support the driving CSS) and the raw HTML
is not well-formed XHTML, so strict readers fail to parse the page.
Skipped the tab markup for the epub builder and fell back to a plain
literal block, matching what the non-HTML builders already do.
}}}
--
Ticket URL: <
https://code.djangoproject.com/ticket/37204#comment:5>