Auto-formatting for tags is off after deleting the "@"

Reported by Oliver Joos on 2011-07-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Low
Unassigned

Bug Description

I use Zim rev416 on Ubuntu 10.04.2 and found problems with auto-formatting tags and with the Tags cloud.

Steps to reproduce:
1. open the Tags cloud (just to make the bug more visible)
2. write "@mytag " (with trailing space) anywhere and save page
=> the Tags cloud shows the new tag "mytag" as expected

3. remove the @ and save again
=> the word mytag is still orange, tag cloud shows a tag "ytag"

4. remove also the 3 letters "yta"
=> an orange "g" is left and Zim complains "Page cannot be saved - Tags should have a name"!

If the tag is on a checkbox line, it also shows up in the Task List, without such problems! I think the Tags cloud and the Task List do not agree what a valid tag is. E.g. "@mytag@" appears in the task list, but not in the tag cloud. If a space is inserted (=> "@mytag @") the tag appears in the Tags cloud, and stays there even if the space is removed again.

This bug might be loosely related to bug 791817.

Part of the issue is indeed already fixed by the fix for bug #791817

Will commit fix as well for the error when the tag becomes 1 character

Remaining is that the formatting can be out of sync with what is considered a tag following this scenario. No direct fix for that.

Changed in zim:
status: New → In Progress
summary: - Auto-formatting tags can render a page unsavable
+ Auto-formatting tags is off after deleting the "@"
summary: - Auto-formatting tags is off after deleting the "@"
+ Auto-formatting for tags is off after deleting the "@"
Changed in zim:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers