Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339894 - [ui] Tab key in XML editing incorrectly uses 'Displayed tab width' instead of 'Indentation size'
Summary: [ui] Tab key in XML editing incorrectly uses 'Displayed tab width' instead of...
Status: RESOLVED WORKSFORME
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: 3.2.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.xml CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 10:25 EDT by Stuart Rossiter CLA
Modified: 2013-09-11 11:38 EDT (History)
2 users (show)

See Also:


Attachments

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