Quote bug with \\

When having the below in a post, it displays correctly

C:\Users\yourUsername\\.arduinoIDE

like C:\Users\yourUsername\.arduinoIDE. The additional \ was added to escape the \ before the dot.

However quoting that text drops one of the backslashes and the result is

This code

C:\Users\yourUsername\\.arduinoIDE

is this quoted

C:\Users\yourUsername\.arduinoIDE

and is this just pasted

C:\Users\yourUsername\.arduinoIDE

a7

I'm not sure if I understand.

If you quote C:\Users\yourUsername\.arduinoIDE you get

If you copy C:\Users\yourUsername\.arduinoIDE and paste it you get C:\Users\yourUsername.arduinoIDE

In both cases you will loose the last backslash.

PS
So not only a quote bug but I would quote functionality to be more intelligent than plain copy/past.

I quoted myself. And lost the appearance of the backslash before the period, which I can see now I am editing.

Now I copy the entire quote of myself and escape the disappearing backslash

The quote in my first post was using the quotation marks.

Sry, I now say this either confirms the error or makes me wonder why it is different for you, useless. Is is hard to type about things that need escaping to show up, possibly harder for me to even understand.

So I am now going to sit on my thumbs. :expressionless:

Why aren't the pathname backslashes interpreted as escapes?

a7

Probably because \U etc don't not have a special meaning; only \.

Clever choice, since usually file names do not start with a .

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.