After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590231 - Spelling suggestions removes formatting
Spelling suggestions removes formatting
Status: RESOLVED NOTGNOME
Product: tomboy
Classification: Applications
Component: General
0.14.x
Other Linux
: Low minor
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
gnome[moved-to-github]
Depends on:
Blocks:
 
 
Reported: 2009-07-30 09:34 UTC by Jay Cassano
Modified: 2017-07-31 12:44 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Jay Cassano 2009-07-30 09:34:55 UTC
Using spelling suggestions feature removes character formatting (bold, italic, strikeout, and highlight) in notes. Should correct spelling without removing formatting.

Ubuntu 9.04, Gnome 2.26.1
Comment 1 Sandy Armstrong 2009-07-30 13:32:23 UTC
I can't reproduce this. Can you give some exact steps to follow in order to reproduce the bug?
Comment 2 Jay Cassano 2009-07-30 20:33:23 UTC
Sorry for not including in original. New to filing bugs.

Steps to reproduce:
1) Create new note
2) Select any text formatting (bold, italic, strikeout, highlight) or any combination of formatting.
3) Type any misspelled word in the body of the note, e.g."correctionz" 

-Tomboy will notice the word is not in its dictionary and will mark it with a red wavy underline.

4) Right click "correctionz" word -> Spelling Suggestions -> Select "corrections"

-Tomboy will remove previously selected character formatting, leaving you with an unformatted (no bold, italic, strikeout, or highlight) "corrections".

*From some more testing just now it looks like there are some cases when this does not always happen, but I cannot figure out the pattern. However, I am fairly certain that if you follow these steps with a new note you will get the same results. Maybe this bug is not triggered in notes that have already had a certain amount of text in them or that have already had another word corrected through spelling suggestions. Not sure entirely. Hope this helps. Feel free to ask for more if you still can't reproduce.
Comment 3 Sandy Armstrong 2009-07-31 00:03:13 UTC
Confirming with latest version in git.

Thanks for the step-by-step instructions, they were perfect.  :-)
Comment 4 Matthew 2010-01-24 18:08:58 UTC
I can confirm this bug. It appears to always happen for me.
Comment 5 Robert Nordan 2011-04-09 21:47:01 UTC
Looking at Watchers.cs and NoteWindow.cs, it seems that basically the gtk text component is handed to gtkspell which then does as it wants with the text. (Appearently ignoring tags...) It is possible to put in place some kind of code that watches which words get tagged with "gtkspell-misspelled" and stores their other tags in a list, and then watches for "gtkspell-misspelled" tags being removed, checking the words and reapplying the other tags. However this gets kind of complicated, so really I'm more inclined to call this a bug in gtkspellcheck since it doesn't respect tags on the text.
Comment 6 André Klapper 2017-07-31 12:44:13 UTC
The Tomboy team has moved from GNOME Bugzilla to GitHub for bug reports and feature requests: 
      https://github.com/tomboy-notes/tomboy/issues/
Closing this report as NOTGNOME as part of Bugzilla Housekeeping (bug 781054) to keep tasks in one place. Please feel free to transfer this task to GitHub if this task is still valid in a recent Tomboy version. 
We are sorry for the inconvenience.