This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 171000 - Wrong indentation using return into a function
Summary: Wrong indentation using return into a function
Status: CLOSED WORKSFORME
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-27 14:54 UTC by cdimauro
Modified: 2017-06-23 08:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cdimauro 2009-08-27 14:54:34 UTC
Paste the following code:

def f():
  return

Now placing the cursor at the start of the return line and pressing enter, results in this code:

def f():

return

instead of:

def f():

  return

Reparting the same with another kind of instructions, seems to work:

def f():
  a = 10

produces:

def f():

  a = 10


Product Version: NetBeans IDE 6.7 (Build 200906251104)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows 7 version 6.1 running on x86; Cp1252; it_IT (nb)
Userdir: C:\Users\Cesare\.netbeans\6.7
Comment 1 Jenselme 2017-06-22 21:53:01 UTC
This looks fixed. Closing this. Please reopen if needed.
Comment 2 Jiri Kovalsky 2017-06-23 08:05:51 UTC
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.