GNOME Bugzilla – Bug 590231
Spelling suggestions removes formatting
Last modified: 2017-07-31 12:44:13 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
I can't reproduce this. Can you give some exact steps to follow in order to reproduce the bug?
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.
Confirming with latest version in git. Thanks for the step-by-step instructions, they were perfect. :-)
I can confirm this bug. It appears to always happen for me.
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.
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.