GTG

tags are written twice

Bug #439368 reported by Lionel Dricot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Critical
Unassigned

Bug Description

1) create a new task a give it a title
2) write a tag
3) add blanks line at the end of the tasks (hit enter multiple times)
4) close gtg
5) restart gtg

6) The tag is written twice on the first two lines !!!

Changed in gtg:
importance: Undecided → Critical
milestone: none → 0.2
status: New → Confirmed
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Dammit! After adding the first debug statement, I'm not able to reproduce this bug at all (even after removing that statement). Can anybody find a better way to reproduce the problem?

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Fixed in rev 331

This was one of the most difficult and non-intuitive bug I had to fix in a
long time.

Root of the problem : the end of the title tag was not at the end of the title
line but on the beginning of the next line. Nothing wrong but the fact that a
"\n" was included in the title.

For a reason I don't understand, this led to consider the tag to be sometimes
part of the title, thus adding a new "first line".

Fixed by simply putting the end of title tag at the end of the title line.

Changed in gtg:
status: Confirmed → Fix Committed
assignee: nobody → Lionel Dricot (ploum)
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.