Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo causes unexpected formatting errors #23

Closed
GoogleCodeExporter opened this issue Mar 22, 2015 · 14 comments
Closed

Undo causes unexpected formatting errors #23

GoogleCodeExporter opened this issue Mar 22, 2015 · 14 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a a node with any amount of text. Apply different rich-text formats 
to discrete portions of the text, such as bolding some words, highlighting 
others, adding bullet lists, underlines, etc.
2. Use ctrl+z or Undo command to revert some of these changes, and observe that 
the rich-text formatting gets distrupted (e.g., a whole section might now 
become unerlined).

What version of the product are you using? On what operating system?

Using cherytree version 0.35.6 with Ubuntu 14.10 64-bit.

Original issue reported on code.google.com by leonardo...@gmail.com on 5 Jan 2015 at 3:17

@Bystroushaak
Copy link

I can confirm this.

@Bystroushaak
Copy link

Okay. Today I encountered the bug twice and it is pretty annoying.

This is really bad bug, because it cannot be easily reproduced and presents itself only when you have large amounts of formatted text. For me, it usually presents, when I have italic and monospace fonts. Then when I press ctrl+z, the random surrounding sections gets tagged as italic/monospace.

Pressing additional ctrl+z doesn't help, you have to exit cherrytree.

Now I have one node where it can be demonstrated, so I will make a video.

@Bystroushaak
Copy link

Here is the file with exported article, so you can try it yourself:

And here is promised video:

@giuspen
Copy link
Owner

giuspen commented Oct 15, 2015

Hi, I'm sorry but I'm not understanding from the video, could you describe
textually? Also I see that you have the spell check active, do you have the
same issue with and without spell check?

On 11 October 2015 at 16:52, Bystroushaak notifications@github.com wrote:

Here is the file with exported article, so you can try it yourself:

And here is promised video:


Reply to this email directly or view it on GitHub
#23 (comment).

@Bystroushaak
Copy link

I have this file with some formating. There are HTML links, italic text, headings, maybe bold, underlined or strikethrough text. Standard stuff.

Now, I edit the file somewhere near the end and I decide to revert the change by using undo (in the video, that happens from the menu, normally I would press CTRL+u). As you can see in the video, after I do the undo, not only that the last change was reverted, but there is now large section of formatted italic text, which I didn't created. What happened was that some random italic section overflowed all the way to the next italic section.

@Bystroushaak
Copy link

Here is the text before change:

snimek obrazovky-example ctd - -home-bystrousak-plocha - cherrytree 0 35 11

Here after the undo:

snimek obrazovky- example ctd - -home-bystrousak-plocha - cherrytree 0 35 11-1

Here is highlighted the overflown italic text:

snimek obrazovky- example ctd - -home-bystrousak-plocha - cherrytree 0 35 11

@Bystroushaak
Copy link

do you have the same issue with and without spell check?

I did tested the file and I was unable to replicate the issue with spellcheck turned off. It seem like the issue may be somehow connected with spellcheck.

@Bystroushaak
Copy link

I would like to urge this issue.

@giuspen
Copy link
Owner

giuspen commented Oct 21, 2015

@Bystroushaak
Copy link

It seems to be working correctly now. Thanks.

@Bystroushaak
Copy link

I think the problem sometimes manifests also when I open (or maybe when I close it?) the cherrytree. Can you please check that possibility? It is kinda random, so I won't be able to provide the file.

@giuspen
Copy link
Owner

giuspen commented Oct 31, 2015

Hi, the problem seems to be a corruption of the formatting, but it is not
saved automatically so I don't think it could be at closing time.
I don't need a file but to understand when it could happen, one hypothesis
is at startup or selected node change time.
I'll analyse the code and try to get back with a version to test, in the
meanwhile please confirm that this happens only with the spell check
enabled.
On 30 Oct 2015 22:09, "Bystroushaak" notifications@github.com wrote:

I think the problem sometimes manifests also when I open (or maybe when I
close it?) the cherrytree. Can you please check that possibility? It is
kinda random, so I won't be able to provide the file.


Reply to this email directly or view it on GitHub
#23 (comment).

@Bystroushaak
Copy link

Yes, it never happened when the spellcheck was disabled.

@txe
Copy link
Contributor

txe commented Oct 29, 2020

was kind of resolved, closing

@txe txe closed this as completed Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants