Modify

Opened 8 years ago

Closed 8 years ago

#1246 closed defect (duplicate)

[PATCH] Allow manipulation of htmldoc flags and negation of defaults from trac.ini

Reported by: anonymous Owned by: athomas
Priority: normal Component: PageToPdfPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Currently it is possible to set new options (name = value) and replace the values of default options in the trac.ini [pagetopdf] section, but as far as I could tell it was not possible to negate default options (this was annoying because I wanted to use book format, not webpage format), and setting keys with empty string values looks sort of odd. The patch allows the extra values "yes" and "no" to be attached to each key in the [pagetopdf] section. If a value is "yes", the key's value gets set to "None"; if it is "no", the key gets removed from the defaults.

Example:

[pagetopdf]
book = yes
color = yes
numbered = yes
title = yes
webpage = no

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by anonymous

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.