Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339894

Summary: [ui] Tab key in XML editing incorrectly uses 'Displayed tab width' instead of 'Indentation size'
Product: [WebTools] WTP Source Editing Reporter: Stuart Rossiter <monsieurrigsby>
Component: wst.xmlAssignee: wst.xml <wst.xml-inbox>
Status: RESOLVED WORKSFORME QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: nsand.dev, zalapa
Version: 3.2.3   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Stuart Rossiter CLA 2011-03-14 10:25:12 EDT
Build Identifier: 20110301-1815

When editing XML files, the Tab key incorrectly uses the 'Displayed tab width' setting (from General-->Editors-->Text Editors) instead of 'Indentation size' (from XML-->XML Files-->Editor).

This happens whether 'Indent using spaces' or 'Indent using tabs' is set.
Source format (Ctrl-Alt-F) does do the formatting correctly.

Displayed tab width should only be being used for displaying existing tab chars. in the source file (unless I've missed something).


Reproducible: Always

Steps to Reproduce:
1. Edit any XML file with Indentation size set to 4 spaces and displayed tab width set to 8.
2. Observe that the Tab char produces 8 spaces instead of 4 spaces.
Comment 1 Salvador Zalapa CLA 2013-07-23 12:10:10 EDT
i just tried this scenario in 3.5.0, and the XML preferences are being honored properly. This bug should be resolved.
Comment 2 Salvador Zalapa CLA 2013-09-11 11:38:04 EDT
Resolving due to my last comment.