Print Thread
Copy&Paste in Editor window
#47468 07/16/13 04:48 PM
Joined: Mar 2007
Posts: 147
Zagreb, Croatia
DoDo Offline OP
Member
OP Offline
Member
Joined: Mar 2007
Posts: 147
Zagreb, Croatia
While I was making my code better orgainized in package body with a lot of functions noticed something strange.
When I cut a function and paste it again suddenly before keywords "Begin", "Else If", "End" and "End If" appears one new line but not in first occurance of "ElsIf".
So this:
Code
Function x return ... is
  A ...
  B ...
  C ...
Begin
  If A = B Then
    Null;
  ElsIf C = D Then
    Null;
  ElsIf E = F Then
    Null;
  End If;
End;
After paste looks something like this:
Code
Function x return ... is
  A ...
  B ...
  C ...

Begin
  If A = B Then
    Null;
  ElsIf C = D Then
    Null;

  ElsIf E = F Then
    Null;

  End If;

End;

I can't say that I noticed this before. Is this some setting or a bug?

Re: Copy&Paste in Editor window
DoDo #47473 07/17/13 10:41 AM
Joined: Aug 1999
Posts: 22,216
Member
Offline
Member
Joined: Aug 1999
Posts: 22,216
I cannot reproduce this. Maybe the origin of the source code had extra or incorrect CR and/or LF characters?


Marco Kalter
Allround Automations
Re: Copy&Paste in Editor window
Marco Kalter #47483 07/18/13 06:17 PM
Joined: Mar 2007
Posts: 147
Zagreb, Croatia
DoDo Offline OP
Member
OP Offline
Member
Joined: Mar 2007
Posts: 147
Zagreb, Croatia
When I save the file, and reopen it, for a while everything is OK, but it starts again. Still haven't found when and what exact happens, but i'll try to exam the file with hex editor, searching for an invalid characters.


DoDo
--------------------------------------------
Be happy, tomorrow it can become only worse. If not, even better!

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.024s Queries: 14 (0.009s) Memory: 2.5059 MB (Peak: 3.0420 MB) Data Comp: Off Server Time: 2024-05-13 01:41:05 UTC
Valid HTML 5 and Valid CSS