Sangdon Shin 0 Posted October 24, 2020 Share Posted October 24, 2020 I recently found that evernote 10.x is using non-breaking space and it converts multiple leading spaces to non-breaking spaces(0xc2a0) so if I do copy & paste code snippets from evernote into terminal or text editor it almost always breaks the thing. Is there a way to disable this default behaviour so it can work like old version (ex. 7.14) ? btw, as a workaround I rolled back my evernote to a legacy one so it doesn't break my codes. Link to post
Level 5 PinkElephant 1,348 Posted October 24, 2020 Level 5 Share Posted October 24, 2020 For new notes, you probably have to assign the „codeblock“ format to make sure it is correctly copied. Maybe this can be done before copying for old notes as well. Still on legacy, can‘t test it on my Mac. Picture from EN v10 iOS: Link to post
Nik Silver 5 Posted November 22, 2020 Share Posted November 22, 2020 I've also found this problem - and a slow fix. I'm using the new Windows desktop app from the Microsoft App Store, v10.4.3. To be clear on the problem I've found: In many of my old notes the spaces are actually "non-breaking spaces", unicode hex c2a0 and not the basic space, unicode hex 0020 (ASCII decimal 32). This means when I copy a line of code into a text file for execution it fails. I'm quite certain the original space was an ordinary one, not a non-breaking one. A slow fix, which allows me to fix each note manually as I find it - in brief, search and replace the offending character in the note. In detail: Highlight one of the offending non-breaking space characters. Copy it into the clipboard (Ctrl-C on Windows) Select the whole note (Ctrl-A on Windows) Open "search and replace" (Ctrl-H on Windows) In "Find in note" paste the non-breaking space in the clipboard. In "Replace with" type a single ordinary space. Click "Replace all" Link to post
JKerr 0 Posted November 22, 2020 Share Posted November 22, 2020 This is not working for me and I think the issue is with how I am highlighting and copying the non-breaking space? I highlighted from the end of a line to the start of a new one, and pasted it in "Find in Note". Then hit the space bar in "Replace with" but the Replace and Replace All buttons remained greyed out. Is there an option to turn a note into plain text? I did find that if I created a code block from scratch and re-typed my code the formatting was ok. However, if I copied and pasted the code from Evernote Note into a new code block, or converted existing code into a Code Block it did not solve the problem, the code still generated a syntax error when I tried to use it in my program editor (Oracle APEX) Link to post
Sangdon Shin 0 Posted November 23, 2020 Author Share Posted November 23, 2020 I've figured out that the simplest form of the fix is rolling back the evernote to legacy. This symptom is on the presentation layer of 10.x, so when you go back to legacy one, you can retrieve the code snippets without the problem. Link to post
L-P Reid 1 Posted December 2, 2020 Share Posted December 2, 2020 I also have the same problem. I actually can't imagine this got through Evernote's testing. How many thousands users of Evernote cut and paste stuff from their Evernote to a shell and do that every day. Even Evernote employees must be doing that every day....and still here we are with this nasty defect. Link to post
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now