Unexpected new line is inserted after links
Bug #346970 reported by
Pititjo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTG |
Fix Released
|
High
|
Unassigned |
Bug Description
An unexpected new line is introduced after url. For reproduce the bug :
- Create a new task
- add an url into it
- close the task editor
- reopen it
I join a patch witch refactor the serializer parse_buffer method and fix the problem. It fix problems with imbricate gtkTextTag too.
tags: | added: toreview |
Changed in gtg: | |
assignee: | nobody → ploum |
importance: | Undecided → High |
milestone: | none → 0.1.1 |
status: | New → Confirmed |
Changed in gtg: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
pitijo > it seems nice but the while True is really ugly. I don't want to have while True / break, it's opening the door to a lot of problem.
Also, the line :
tags = [ta for ta in it.get_tags() if it.begins_tag(ta) and ta not in done and is_know_tag(ta)]
is really unclear and should not be done like this. Please split that line into several logical components.
Can you also comment a bit more your code ?
Last but not least, you make on this bug a summary of what your patch changes so people less familiar with the code could see the benefit ;-)
Thanks a lot :-)