Fix TOC display for printing

Apply the same display: table styling (+backwards-compatibility shims)
for print as for screen.

Bug: 57010
Change-Id: I399291d42531e406e8ea75d977453782b1269b50
Merge "Fix TOC display for printing"