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 154399 - Source->Format results in invalid code
Summary: Source->Format results in invalid code
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-02 20:10 UTC by arthurlee
Modified: 2009-02-19 22:57 UTC (History)
0 users

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 arthurlee 2008-12-02 20:10:56 UTC
After a Source->Format can result in invalid code because of indentations were removed.  For example, try Source->Format the 
following.

class LSimpleXMLRPCServer(LSimpleXMLRPCDispatcher, SimpleXMLRPCServer):
    def __init__(self, addr, requestHandler=LSimpleXMLRPCRequestHandler,
                 logRequests=1, allow_none=0):
        SimpleXMLRPCServer.__init__(self, addr, requestHandler, logRequests)
        LSimpleXMLRPCDispatcher.__init__(self)

        self.allow_none = allow_none
Comment 1 Torbjorn Norbye 2008-12-02 23:42:20 UTC
Fixed in changeset 0021dbee85de

Will be available in build 212 from http://deadlock.netbeans.org/hudson/job/python/
Comment 2 Peter Lam 2008-12-15 04:45:23 UTC
verified in build 320 (20081212).