Edgewall Software
Modify

Ticket #5417 (closed enhancement: worksforme)

Opened 5 years ago

Last modified 5 years ago

[PATCH] Provide a stylesheet for use when printing that gets rid of irrelevant data

Reported by: robert.chin@… Owned by: jonas
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords: needinfo
Cc:
Release Notes:
API Changes:

Description

It would be great to have a special printing stylesheet that gets rid of irrelevant UI widgets (buttons, search fields, etc.) for use when printing. This reduces paper consumption due to margins and other things taking up space.

This is especially useful if trac is used to print revision log PDFs for electronic reading (such as on an ebook reader, or other archival purposes).

Attachments

trac_print_stylesheet.diff (2.4 KB) - added by robert.chin@… 5 years ago.
Print stylesheet and associated changes to use the media attribute in the href tag

Download all attachments as: .zip

Change History

Changed 5 years ago by robert.chin@…

Print stylesheet and associated changes to use the media attribute in the href tag

comment:1 Changed 5 years ago by eblot

  • Keywords needinfo added

Which release of Trac are you using?
AFAICT, the widgets you're referring to (buttons, search boxes, headers/banners, ...) are already discarded for printing.

comment:2 Changed 5 years ago by robert.chin@…

  • Resolution set to worksforme
  • Status changed from new to closed

You're right, I was using an older version of trac as a reference, and didn't bother to check the latest trac head that my development machine was using... oops.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.