#23751: Code snippets display without formatting in PDF version of the docs
--------------------------------+------------------------------------
Reporter: adam-glodowski | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------
Comment (by gwideman):
FIX FOR THIS ISSUE
I am the poster of issue 25738 which describes this bug in more detail,
but was closed as a duplicate of this one here.
The bug revolves around code listings produced with the Sphinx directive
'snippet'. That directive is custom to Django, and is added via
[sphinx]/docs/_ext/djangodocs.py.
It turns out that the implementation, in visit_snippet_latex( ) and
depart_snippet_latex( ) was hosed up. May never have worked, or inherited
sphinx code changed from under it at some point.
Anyhow, I will attach a revised djangodocs.py which produces a correct-
looking snippet output into the latex output file, which is then converted
into the PDF version. (djangodocs-latex-pdf-fix-gw-2015-11-14.py)
I will also attach a screen cap from a page in the PDF, showing a sample
of the broken output, and the fixed output.
(DjangoDocsBrokenCodeFormattingFixed01.png)
--
Ticket URL: <https://code.djangoproject.com/ticket/23751#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/072.6445e74ab4af31c138350076ca7acefb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.