Jump to content

Cut and Paste into Code Block not working with blank lines.


Recommended Posts

I am seeing an issue where If I copy text and try and paste into a Code Block it will only work if the text copied does not contain a blank line.  Any text that does NOT have blank line seems to work o.k.

I am able to paste into the note itself, but not into a Code Block.

Any ideas why this is happening or how to fix it?

Link to comment
  • 4 weeks later...

I'm not able to reproduce this myself. I tried copying text from copying from Evernote, Apple Mail, VS Code and IntelliJ IDEA and pasting into a code block is working in all cases. From what application are you copying the text?

Link to comment

Hi, I was coping code from TextEdit on a mac into the code block (chrome browser),  I just tried again with the same code and it failed to paste again

If I remove the blank lines in TextEdit it pasts in fine.

If I create a new file in Visual Studio Code, a few fines of text, new line, and a few more lines of text.  I still am unable to paste this into a code block.

It might be a chrome issue

 

 

Link to comment

Apologies I didn't even see that bit, on my work MAC I'm not allowed to install unofficial software hence using the web browser, I haven't tied it on the PC yet which to see if I get the same issue.  Google found this post :)

Link to comment

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...