Skip to content

New node's text does not match entered text #9

@younrx

Description

@younrx

I went through a wierd behavior when creating a new comment/note.

First, the tag [TODO] is automatically added (I am not sure that this was the whished behavior, since there is a button Mark as To-Do to add this tag). Second, if I create a note with one or various strings into square brackets, they are all removed (except for tag strings directly preceded by another tag string).
Here are a few examples:

Text entered in new note Text obtained after creating note
1 text [TODO] text (tag TODO added automatically)
2 [tag1] [TODO] [tag1]
3 text [tag1] [TODO] text [tag1]
4 [tag1] text [TODO] text
5 [tag1] [tag2] text [TODO] text
6 [tag1] text [tag2] [TODO] text [tag2]
7 [tag1] text [tag2] [tag3] [TODO] [tag3]
8 [tag1] text [tag2][tag3] [TODO] text [tag2][tag3]
9 [tag1] text [tag2] [tag3] [tag4] [TODO] [tag4]
10 [tag1] text1 [tag2] [tag3] text2 [tag4] [TODO] text2 [tag4]
11 [tag1] text1 [tag2] [tag3] text2 [tag4] [tag5] [TODO] [tag5]
12 [tag1] text1 [tag2] [tag3] text2 [tag4][tag5] [TODO] text2 [tag4][tag5]

It is possible to have the note obtained text equal to the entered text by doing note>edit>cancel. The displayed text is then updated and has the correct value. Doing a note>edit>save before seems to make the "reverse" behavior impossible. It seems to be due to another mechanism, thus I have submitted another issue for this: #10

Additional note: This behavior not only happens when creating a note, but also when using the Mark as XXX feature. Using this feature sometimes even removes more text. For example, string text [tag2] [tag3] is displayed as [TODO] text [tag2] [tag3] on note creation (this is equivalent to the third line in the table above) but it is displayed as [XXX] [tag3] after using Mark as XXX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions