Zim

Reloading page with markup misplaces cursor

Bug #1083390 reported by Joel Pettersson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Won't Fix
Low
Unassigned

Bug Description

1. Enter the following text (excluding <cursor>) into a page:

Zim //markup// <cursor>feature is great.

2. Place cursor at the position indicated by <cursor>, that is, just before the word "feature".

3. Reload page.

Expected result: The word "markup" is in italic, the two pairs of "//" are gone, AND the cursor is still positioned just before "feature".

Actual result: The word "markup" is in italic, the two pairs of "//" are gone, BUT the cursor is *not* positioned before "feature", but instead in the middle of "feature".

It seems that the removed characters used for markup are not accounted for when positioning the cursor after a page reload.

I am running Zim 0.56 on Ubuntu 12.10:

INFO: This is zim 0.56
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
  branch: pyzim-trunk
  revision: 533 <email address hidden>
  date: 2012-04-02 22:07:22 +0200
DEBUG: Gtk version is (2, 24, 13)
DEBUG: Pygtk version is (2, 24, 0)

description: updated
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Will keep the report open, but afraid this will be a "Won't Fix" for a long time. Reason is that in the pageview we do not have information from the parser, so we are not aware that the characters disappeared.

Changed in zim:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Moved to "won't fix" - auto-formatting option will help in this example to avoid reload

Changed in zim:
status: Confirmed → Won't Fix
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.