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

While saving to a local .txt, [ and ] are saved as _ #49

Closed
statshakur opened this issue May 27, 2018 · 1 comment
Closed

While saving to a local .txt, [ and ] are saved as _ #49

statshakur opened this issue May 27, 2018 · 1 comment

Comments

@statshakur
Copy link

statshakur commented May 27, 2018

OK, i'm what you would call a Noob if it's about Bug reporting.

Windows 10, AlephNote 1.6.16, Active account is "Filesystem", UTF-8

I wrote myself some Notes to do after a new Windows 10, Linux and Android installation and those textfiles contain [ and ] in the title. It's fine if i don't do anything but if i edit a Note and save it via Synchronize, AlephNote changes [ and ] to _

For example:

[Windows 10][Registry] Ordner im Arbeitsplatz

is saved as

_Windows 10__Registry_ Ordner im Arbeitsplatz

@Mikescher
Copy link
Owner

Mikescher commented May 27, 2018

Yes, I replace invalid characters in the note title with an underscore, because some characters are not allowed in filenames (e.g. \, /, :, ?, ....).

But I guess on windows square brackets are also valid filename characters, I will fix this in the next version

PS: I've edited your issue to show the underscores (just put them into code blocks by surrounding them with backticks)

Mikescher added a commit that referenced this issue May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants