Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printout of "The Rust Programming Language" is truncated #840

Closed
jimis opened this issue Dec 5, 2018 · 4 comments
Closed

Printout of "The Rust Programming Language" is truncated #840

jimis opened this issue Dec 5, 2018 · 4 comments

Comments

@jimis
Copy link

jimis commented Dec 5, 2018

Using Firefox, go to "The Rust Programming Language" manual page and click on the print button on the upper right corner of the page. This redirectos to a printable page with the whole manual, and a bit later the print dialog pops-up, so select "print to PDF". The full URL is this:

https://doc.rust-lang.org/book/2018-edition/print.html

Results: The margins in the generated PDF file are messed up. The left half of the page is empty, the right half is missing (text is truncated in all pages). See attachment "mozilla.pdf", which is a printout of the first 10 pages of the manual.

mozilla.pdf

@jwatt
Copy link

jwatt commented Jan 2, 2019

I ended up here from https://bugzilla.mozilla.org/show_bug.cgi?id=1511461

While debugging to figure out if this was a Mozilla or mdBook bug I discovered that the issue is fixed in the latest version of the book:

https://doc.rust-lang.org/book/print.html

@jimis
Copy link
Author

jimis commented Jan 4, 2019

@jwatt the PDF looks the same to me even with the latest version of the book.

I found a workaround though:

  • Close the print dialog that automatically pops-up
  • Hide the table-of-contents sidebar by hitting the button in the upper-left corner
  • Print manually

@ehuss
Copy link
Contributor

ehuss commented May 17, 2019

This seems to be fixed in the latest mdbook. For example: https://doc.rust-lang.org/nightly/book/print.html works. TRPL was updated to mdbook 0.2 just recently (rust-lang/rust#59876), and will ride the train with rust 1.36.

@ehuss ehuss closed this as completed May 17, 2019
@jimis
Copy link
Author

jimis commented May 17, 2019

Indeed the nightly version of the book prints nicely. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants