Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

Last modified 16 years ago

#902 closed defect (fixed)

Log messages don't strip leading whitespace

Reported by: jordi@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: version control/log view Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

A lot of people around here, out of some weird reflex, enter one or two blank spaces or sometimes even entire lines on their commit messages, specially when doing it with a text editor on the UNIX command line.

I wonder if there's any harm in having Trac ignore leading whitespace while displaying the log messages on the Revision Log screen. As of now, all the entries with blank lines leading to the actual entry appear as "…" on the Revision Log screen.

Attachments (0)

Change History (4)

comment:1 by anonymous, 18 years ago

Summary: Skip leading blank lines on log messagesLog messages don't strip leading whitespace

comment:2 by jordi@…, 18 years ago

I've been trying to fix it myself using util.lstrip, but not knowing much about python, I wonder what is the magical argument for "all whitespace".

Any ideas?

comment:3 by Christopher Lenz, 17 years ago

Component: browserlog view

The magical argument is none, i.e. omitting the argument.

comment:4 by Christian Boos, 17 years ago

Resolution: fixed
Status: newclosed

The display of the log message in the revision log (and in the timeline) is now working as expected in this ticket, since the new util.shorten_line implementation made in [1561].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.