Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Proper subsections of a top-level section in printer-friendly output have level equal to the parent.
That is, we have
Structure: Expected depth Actual depth
section 1 1 1
section 1.1 2 1
section 1.1.1 3 2
section 1.2 2 1
The attached patch is a one-line change. It increments $depth
before calling book_print_recurse()
from book_print()
.
I'm marking this as critical since it is interfering with generation of PDF from the Handbook.
Djun
Comment | File | Size | Author |
---|---|---|---|
book_printer_friendly_depth.patch | 583 bytes | puregin | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedCommitted to HEAD and DRUPAL-4-6. Thanks.
Comment #2
(not verified) CreditAttribution: commented