Page 2 of 2

Re: modification date and unmodified note

Posted: Mon Jan 30, 2012 4:17 pm
by CintaNotes Developer
Btw, what caused the bug, just out of curiousity?

Text formatting info saved in the DB and the same formatting collected from the
richedit control were slightly different (similar to "<b><a>link</a></b>" vs.
"<a><b>link</b></a>")and caused CN to think that the formatting has been changed :D

Re: modification date and unmodified note

Posted: Wed Feb 08, 2012 11:02 pm
by Thomas Lohrum
There is one more issue with notes being saved, though opened and closed without making any changes, using the ESC key only. By analyzing the data, i can see that a "<pre></pre>" tag combination was added, causing the note to be saved.

Re: modification date and unmodified note

Posted: Thu Feb 09, 2012 10:15 am
by CintaNotes Developer
Thomas Lohrum wrote:There is one more issue with notes being saved, though opened and closed without making any changes, using the ESC key only. By analyzing the data, i can see that a "<pre></pre>" tag combination was added, causing the note to be saved.

Thanks, Thomas, I'll investigate the issue as soon as I can.

Re: modification date and unmodified note

Posted: Fri Feb 10, 2012 12:06 pm
by CintaNotes Developer
Thomas Lohrum wrote:There is one more issue with notes being saved, though opened and closed without making any changes, using the ESC key only. By analyzing the data, i can see that a "<pre></pre>" tag combination was added, causing the note to be saved.

Thanks to having your cintanotes.settings file, I have found the reason of the problem!
This happens because you have the same font for the note's text and for monospace formatting - namely, Courier New.
When CN is saving a note, it has other way to know where "monospace" formatting has been applied other than to look at the font. And when you press ESC, CN erroneously "detects" that you have applied the monospace formatting to the whole text!
This is also why that PRE tag is appearing in the XML.

The question is now, how to fix this. The easiest way would be to detect that the fonts are the same and just don't bother with monospace formatting in this case.

Re: modification date and unmodified note

Posted: Fri Feb 10, 2012 1:24 pm
by Thomas Lohrum
As i always use monospace you're solution sounds reasonable. Let's fix it this way. :)

Re: modification date and unmodified note

Posted: Sat Feb 11, 2012 2:17 am
by CintaNotes Developer
Ok ready! Please try this version:

Re: modification date and unmodified note

Posted: Sun Feb 12, 2012 8:03 am
by Thomas Lohrum
I created a test note. Tested with the old (buggy) version. Tested with the new version. I confirm the bug is gone :)

Thomas

Re: modification date and unmodified note

Posted: Mon Feb 13, 2012 4:31 am
by CintaNotes Developer
Great!