Page 1 of 1

1.5.1 unwanted spaces at end of line

Posted: Mon Nov 07, 2011 10:43 pm
by Thomas Lohrum
I think this is a new behaviour in 1.5.1, which i never noticed before in 1.4.3. Spaces appear at the end of a line which won't be removed, even when saving the note.

Testcase
* insert "* line 1"
* press "Enter"
* insert " more notes" (two spaces in front)
* press "Enter"
* now two spaces are inserted automatically
* press "arrow up"
* press "end" to jump to the end of " more notes"
* press "del"
* press "end"

Now the cursor is beyond the 2 spaces. This might be ok for this simple testcase, but these spaces appear in most notes that i have created since using 1.5.1.

Re: 1.5.1 unwanted spaces at end of line

Posted: Tue Nov 08, 2011 5:37 am
by CintaNotes Developer
Well this is actually a side-effect from a feature which is most often called "auto indent" or "smart indent".
The point of it is that the next line automatically receives the indent level of the previous line.
But it seems that my implementation at the moment is not that smart after all ;)

I am still thinking what to do about it, but after the next update you will at least be able to turn this
feature off.

Re: 1.5.1 unwanted spaces at end of line

Posted: Tue Nov 08, 2011 8:24 pm
by Thomas Lohrum
I understand "auto ident" ;) - The problem is, that auto-ident sometimes insert idents, though there already have been idents inserted. As for the unwanted spaces at the end of the line, they could be removed when the cursor moves to the next line or when the note is saved.