Edgewall Software

Opened 10 years ago

Last modified 7 months ago

#11530 new enhancement

Ticket default_description cannot include new lines — at Version 1

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: next-stable-1.6.x
Component: ticket system Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

Two issues were discussed on the mailing list:

  1. It should be documented that lines 2:end need to be indented with whitespace to have a multi-line ticket description. For example,
    [ticket]
    default_description = line1 
     line2
     line3
     line4
    
    This would be applicable to any textarea. Description is currently the only one in [ticket] section (TracIni#ticket-section), but we may also need to consider the value parameter of textarea custom fields (TracTicketsCustomFields#AvailableFieldTypesandOptions).
  1. Empty lines can't be included in the [ticket] default_description because ConfigParser in Python 2.x does not appear to support empty lines. The empty lines are stripped out. We'll need a workaround such as specifying empty lines with a single \ character, and then stripping out the character before rendering an empty line in the ticket description.

Change History (2)

comment:1 by Ryan J Ollos, 10 years ago

Description: modified (diff)

by Jun Omae, 10 years ago

Attachment: 20140312T032218.png added
Note: See TracTickets for help on using tickets.