Skip to content

Make framing and captions of PDF literal code-blocks obey indentation - #2459

Merged
jfbu merged 1 commit into
sphinx-doc:stablefrom
jfbu:pdfvariablewidthcodeblocks
Apr 25, 2016
Merged

jfbu merged 1 commit into
sphinx-doc:stablefrom
jfbu:pdfvariablewidthcodeblocks

Conversation

@jfbu

@jfbu jfbu commented Apr 18, 2016

Copy link
Copy Markdown
Contributor

Thus, html and pdf look more similar.

@jfbu

jfbu commented Apr 18, 2016

Copy link
Copy Markdown
Contributor Author

Here is a screen-shot from the Sphinx PDF documentation currently:

sans titre 2

and here is with the patch of this PR:

sans titre

@jfbu

jfbu commented Apr 18, 2016

Copy link
Copy Markdown
Contributor Author

And for comparison a screen shot from the html version on the official site:
capture d ecran 2016-04-18 a 16 34 11

@jfbu

jfbu commented Apr 18, 2016

Copy link
Copy Markdown
Contributor Author

One can notice that in the pdf output the top and bottom frame are a bit too close to the contents, but that's fixed as part of PR #2343 ;-)

@tk0miya

tk0miya commented Apr 25, 2016

Copy link
Copy Markdown
Member

I have nothing to say to this PR. It's very complicate for me.
But I prefer the new result.

Let's merge!

@tk0miya tk0miya added this to the 1.4.2 milestone Apr 25, 2016
@jfbu
jfbu force-pushed the pdfvariablewidthcodeblocks branch from a78db19 to d3f73e7 Compare April 25, 2016 14:36
@jfbu

jfbu commented Apr 25, 2016

Copy link
Copy Markdown
Contributor Author

rebased on current stable tip; updated CHANGES.

@jfbu
jfbu merged commit eabfd5e into sphinx-doc:stable Apr 25, 2016
@jfbu

jfbu commented Apr 25, 2016

Copy link
Copy Markdown
Contributor Author

@tk0miya it is indeed complicated as it relies on framed.sty code, which is not so much explained...

@jfbu
jfbu deleted the pdfvariablewidthcodeblocks branch April 25, 2016 14:58
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants