book icon indicating copy to clipboard operation
book copied to clipboard

HTML print output does not include chapter numbers

Open dilyanpalauzov opened this issue 1 year ago • 3 comments
trafficstars

When I click on https://doc.rust-lang.org/book/ → Printer icon 🖶 in the right upper corner, this page loads https://doc.rust-lang.org/book/print.html. I print the output. All the hyperlinks are now gone.

The printout speaks on several places about chapters using numbers, e. g. on page 587 “Valid pattern syntax in macro definitions is different than the pattern syntax covered in Chapter 18 because macro patterns are matched against Rust code structure rather than values.”

The problem report is, that when the file is printed, there is no “Chapter 18”: the chapters are labelled only by names, not by numbers.

  • Include in the output the chapter numbers, before the chapter names. E.g on page 44 replace “Common Programming Concepts” with “3. Common Programming Concepts”.

dilyanpalauzov avatar Sep 07 '24 15:09 dilyanpalauzov