Line breaks are lost on copy/paste
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
SQuirreL uses the 'line feed' as line separator only.
On Windows it used to be common to use 'carriage return' and 'line feed'.
When some simple / strictly windows only text editor is used this kind of problem occurs.
There will be no fix for this. As a workaround use an editor like Notepad++.
There is no external text editor involved, this happens within the SQuirreL editor, copying multiline text and pasting it within the program (On Windows).
This used to work in previous versions so it is a regression.
And incidentally, pasting into Notepad++ does not work corrrectly either.
Sorry, but I can't reproduce your problem.
Can you give some more details: Java version, OS version, ...?
It's on the work machine. I'll check on Monday.
Information here: https://pastebin.com/au1SA0Ey
Can it be somehow related to this?
https://sourceforge.net/p/squirrel-sql/mailman/message/19806037/
Reverted to 3.9.1
Copy/paste works correctly.
Could you please check if you have RTF copy enabled. If so please switch it off and see if the problem is gone.
See menu File --> New Session Properties --> tab Syntax --> Check box "Copy shortcuts use Rich Text Format".
It is turned on.
It works fine in 3.9.1 though (and in previous versions) and is useful for emailing colour-coded snippets.
Good to know because now it's reproduced.
The issue is actually in RSyntax I think, see
https://github.com/bobbylight/RText/issues/39
Nonetheless I already found a fix by moving some of RSyntax's code into SQuirreL and change it a little. I'd like to see if I get a quick response from RSyntax. If I don't hear something till tomorrow night (GMT+2) I'll commit my changes and release the fix.
Good to know!
You should probably also change the status from "closed-wont-fix" to something more approtriate.
Fixed in our GIT repository. Will be available in future snapshots and versions.