[pyzim] Reopen current page will insert extra newline between tasks
Bug #478564 reported by
Ben Lau
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Zim | Status tracked in Pyzim | |||||
Pyzim |
Fix Released
|
High
|
Unassigned |
Bug Description
Steps to reproduce the problem
1. Create a wiki page with following content. (Call it "Testing")
Project 1
[] Task 1
[] Task 2
Project 2
[] Task 2
2. Inside the index view , click on the "Testing" page.
3. You will find that extra newlines was inserted between tasks. The content becomes:
Project 1
[] Task 1
[] Task 2
Project 2
[] Task 2
To post a comment you must log in.
I have traced the code , and find a very simple (dirty?) method to solve the problem. It may add a condition checking at the start of PageView. set_page( ).
Example:
def set_page(self, page):
if self.page == page:
return
# for some reason keeping a copy of the previous buffer