Skip to content

Encoding/Decoding bug on save #71

@pvbernhard

Description

@pvbernhard

I'm using Heimer 1.12.0 (but it says 1.11.0 on the title) on Windows 10.

There are two bugs related to saving and editing the file:

  • Newlines are being added on top of newlines. Repro:
    1. Make a new file with a node with the text: 1<newline>2, save it. PS: it seems the bug only happens if there is text before and after the newline.
    2. Open the file, click on the node but don't edit it or do anything.
    3. Close the file and save it. Heimer will say the file has been modified even though there should be no modification and will ask to save it.
    4. Open the file again. The text will be 1<newline><newline>2.
    5. Repeat steps 2-4 (ii-iv), there will be a new newline every time you go through this process.

Opening the file on a text editor after the step 3 (iii) shows the newline as &#xd;\r\n instead of simply \n.

  • Accents doesn't save. Repro:
    1. Make a new file with a node with the text á, save it.
    2. Open the file, the character will be . Make some modification just to save the file again.
    3. Open the file again, now the character will be ?.

Opening the file on a text editor after the step 1 (i) shows the character as xE1. Editing the file on a text editor to á makes Heimer show the character á correctly.

Likewise, opening the file on a text editor after the step 2 (ii) shows the character as ?.

I hope this is helpful.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions