Menu

#1394 Line breaks are lost on copy/paste

SQuirreL
closed-fixed
nobody
None
high
2019-06-12
2019-05-30
Alex
No

Copying a multi-line block from the editor to the clipboard removes line breaks, so when pasting, everything is pasted as one line.

SQuirreL SQL Client snapshot-20190526_2200

Discussion

  • Gerd Wagner

    Gerd Wagner - 2019-06-09

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

     
  • Gerd Wagner

    Gerd Wagner - 2019-06-09
    • status: open --> closed-wont-fix
     
  • Alex

    Alex - 2019-06-09

    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.

     
  • Alex

    Alex - 2019-06-09

    And incidentally, pasting into Notepad++ does not work corrrectly either.

     
  • Gerd Wagner

    Gerd Wagner - 2019-06-09

    Sorry, but I can't reproduce your problem.
    Can you give some more details: Java version, OS version, ...?

     
  • Alex

    Alex - 2019-06-09

    It's on the work machine. I'll check on Monday.

     
  • Alex

    Alex - 2019-06-10

    Reverted to 3.9.1
    Copy/paste works correctly.

     
  • Gerd Wagner

    Gerd Wagner - 2019-06-10

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

     
  • Alex

    Alex - 2019-06-10

    It is turned on.
    It works fine in 3.9.1 though (and in previous versions) and is useful for emailing colour-coded snippets.

     
  • Gerd Wagner

    Gerd Wagner - 2019-06-11

    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.

     
  • Alex

    Alex - 2019-06-12

    Good to know!
    You should probably also change the status from "closed-wont-fix" to something more approtriate.

     
  • Gerd Wagner

    Gerd Wagner - 2019-06-12
    • status: closed-wont-fix --> closed-fixed
     
  • Gerd Wagner

    Gerd Wagner - 2019-06-12

    Fixed in our GIT repository. Will be available in future snapshots and versions.

     

Log in to post a comment.

Auth0 Logo