Issue295

Title title is changed by email updates when only whitespace had changed
Priority bug Status chatting
Superseder Nosy List eric.araujo, ezio.melotti, r.david.murray
Assigned To Topics

Created on 2009-07-21.12:36:01 by r.david.murray, last changed 2010-08-27.00:14:55 by eric.araujo.

Messages
msg1452 (view) Author: ezio.melotti Date: 2009-07-27.02:59:52
When a new issue is created or a message is added the title could be passed to
re.sub('[\t\n\r\f\v]+', '', title). This will remove all the whitespaces except
normal spaces (I don't see any valid reason to have tabs, newlines and similar
in the title anyway).
This regex will preserve the original normal spaces (so if the user put two or
more spaces they will be saved as they are).
A simpler approach is to use re.sub('\s+', ' ', title) (or '
'.join(title.split())) to replace all the whitespaces with a single space.
msg1445 (view) Author: r.david.murray Date: 2009-07-21.12:36:00
When someone responds to an issue email, the tracker will change the title when
the only thing that has changed is whitespace (generally a tab introduced by the
respondent's email client).  It would be better if whitespace changes were ignored.
History
Date User Action Args
2010-08-27 00:14:55eric.araujosetnosy: + eric.araujo
2009-07-27 02:59:52ezio.melottisetstatus: unread -> chatting
nosy: + ezio.melotti
messages: + msg1452
2009-07-21 12:36:01r.david.murraycreate