Bug 206803 - Templates don't respect tab policy settings for indentation.
Summary: Templates don't respect tab policy settings for indentation.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P1 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: PHP Doc CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-10-18 14:17 EDT by Sean CLA
Modified: 2020-05-14 10:16 EDT (History)
4 users (show)

See Also:


Attachments
patch (2.79 KB, patch)
2010-03-08 07:36 EST, Zhongwei Zhao CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sean CLA 2007-10-18 14:17:38 EDT
When inserting a template, tab characters in the template are inserted as-is, even if the tab policy option is set to "Spaces".  I would expect that any tab characters in the template used for indentation would be replaced with the appropriate number of spaces if the tab policy option is set to "Spaces" (in either the global PHP > Formatter settings or the project specific settings).
Comment 1 Vadim Punski CLA 2009-12-30 10:13:12 EST
Auto formatting for inserted code using selection solves the problem.
I suppose the inserted code should be formatted before the actual insertion performed.
Reproduced in 2.1-SR1.
Moving to 2.2.0M1
Comment 2 Vadim Punski CLA 2009-12-30 10:19:36 EST
moving
Comment 3 Zhongwei Zhao CLA 2010-03-08 07:36:26 EST
Created attachment 161280 [details]
patch
Comment 4 Q.S. Wang CLA 2010-03-09 07:20:58 EST
Applied the patch.
Thanks for contribution.
Comment 5 Gadi Goldbarg CLA 2010-05-04 03:00:20 EDT
Tested in EclipsePdt-2.2.0.v20100427
Verified fixed.

Kalin Yanev
kalin.a@zend.com