[drupal-devel] [bug] Section depth for printer-friendly output
off-by-one error
puregin
drupal-devel at drupal.org
Thu May 5 23:38:11 UTC 2005
Issue status update for http://drupal.org/node/22123
Project: Drupal
Version: cvs
Component: book.module
Category: bug reports
Priority: critical
Assigned to: puregin
Reported by: puregin
Updated by: puregin
Status: patch
Attachment: http://drupal.org/files/issues/book_printer_friendly_depth.patch (583 bytes)
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
puregin
More information about the drupal-devel
mailing list