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 - Code completion: Left-Trim whitespaces in Code templates when shown in Code Completion
Summary: Code completion: Left-Trim whitespaces in Code templates when shown in Code C...
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-21 15:31 UTC by markiewb
Modified: 2013-07-01 22:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the issue (55.36 KB, image/png)
2013-06-21 15:31 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
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