Community
Participate
Working Groups
20030917 String str1= "Hello\n"; String str2= "World"; Select '\n' from str1 and paste it at the end of str2. The result is "World\\n" which is not what I wanted. This is too much cleverness in my opinion. Paste can't really know if my string is already escaped. It could guess, but this is not really possible. A good thing is definitly to replace new lines in the string by '\n', but escaping of backslashes is too much.
Workaround: switch to non-smart mode (by pressing Insert) before pasting. Tip: Disable to toggle into Overwrite mode when pressing Insert (Java > Work in Progress page).
You're right about the fact that Paste does not have any context about where the pasted content comes from. Hard to find a good solution for everyday use. An option would be to make Paste use the format it thinks fits the user's intent best, but offer other options like "Paste Raw", "Paste Indented". A widely used Word processor has this feature, calling it "Paste Special...".
changed default preference for "escape strings" to false as the current state is not satisfying. It is planned to introduce a "Paste Special" command that will overtake this. Resolving to LATER as this won't make it into M4.
We normally use LATER if it does not make it into the release
alright... reopening, and dropping priority
Removing milestone tag.
Moving back to inbox.
I'm ok if you close this bug. There are workarounds as mentioned.
see previous comment.