this post was submitted on 24 Jan 2024
10 points (100.0% liked)

macOS

948 readers
3 users here now

The home for all things macOS on LW.

Rules:

founded 1 year ago
MODERATORS
 

This is killing me.

We have a snippet of code on a web page. Users copy the code to a text editor, make a small change, then copy the modified version and paste it into a terminal window.

And it fails to run.

I've confirmed this happens with both Textedit and Notes, and also that copying from the web page and pasting directly into a terminal works fine (although without the necessary code changes).

It's something in the text editor copy; and there's no way to either "copy as plaintext" or "paste without formatting" into a terminal.

Does anyone know how I can work around this?

EDIT Apparently some (but not all) spaces (octal 040) are being converted to octal "302 240". I can't figure out how to stop it!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 9 months ago

Doesn't shift+Ctrl+v paste the code as plan text?