Jump to content

non-breaking space issue with 10.x


Recommended Posts

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

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:

image.thumb.jpeg.73945cf128790685771ef48e68b2d812.jpeg

Link to post
  • 4 weeks later...

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:

  1. Highlight one of the offending non-breaking space characters.
  2. Copy it into the clipboard (Ctrl-C on Windows)
  3. Select the whole note (Ctrl-A on Windows)
  4. Open "search and replace" (Ctrl-H on Windows)
  5. In "Find in note" paste the non-breaking space in the clipboard.
  6. In "Replace with" type a single ordinary space.
  7. Click "Replace all"

 

Link to post

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...