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 231647

Summary: Code completion: Left-Trim whitespaces in Code templates when shown in Code Completion
Product: editor Reporter: markiewb
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Shows the issue

Description markiewb 2013-06-21 15:31:56 UTC
Created attachment 136154 [details]
Shows the issue

* create a code template which starts with whitespaces like "           my content"
* configure the context of the template, so that it will be shown in CC
* invoke CC (in the correct context) to see a completionItem of the template

ACTUAL: left whitespace of the content is shown -> looks strange (like an alien to the other items), see screenshot
EXPECTED: left trim the content
Comment 1 Dusan Balek 2013-06-21 17:57:45 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/2e82dd0b0103
Comment 2 Quality Engineering 2013-06-23 02:10:08 UTC
Integrated into 'main-golden', will be available in build *201306222301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2e82dd0b0103
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #231647: Code completion: Left-Trim whitespaces in Code templates when shown in Code Completion - fixed.
Comment 3 markiewb 2013-07-01 22:46:13 UTC
Verified in 201307011244