Bug 472338 - QVTo editor inserts tabs even though text editor settings indicate spaces should be used instead
Summary: QVTo editor inserts tabs even though text editor settings indicate spaces sho...
Status: ASSIGNED
Alias: None
Product: QVTo
Classification: Modeling
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sergey Boyko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-10 04:33 EDT by Dennis Hendriks CLA
Modified: 2015-07-10 10:57 EDT (History)
2 users (show)

See Also:


Attachments
Screenshot to show the 'Insert spaces for tabs' text editor setting is enabled (90.86 KB, image/png)
2015-07-10 04:34 EDT, Dennis Hendriks CLA
no flags Details
Screenshot to show the problem (before/after pressing enter) (8.87 KB, image/png)
2015-07-10 04:35 EDT, Dennis Hendriks CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Hendriks CLA 2015-07-10 04:33:58 EDT
When using the QVTo editor, sometimes tabs are automatically inserted, even though text editor settings are configured to use spaces instead of tabs. For instance, when having the following code:

[code]
    self.children->forEach(child) {
[/code]

and pressing <ENTER> at the end of the line, QVTo automatically adds two new lines: one with the same indentation as the line at which <ENTER> is pressed, with one additional tab character as indentation, and one other line, with the same indentation and a '}' character.

This seems to occur for 'forEach' bodies, 'if' bodies, mapping bodies, etc.
Comment 1 Dennis Hendriks CLA 2015-07-10 04:34:32 EDT
Created attachment 255102 [details]
Screenshot to show the 'Insert spaces for tabs' text editor setting is enabled
Comment 2 Dennis Hendriks CLA 2015-07-10 04:35:01 EDT
Created attachment 255103 [details]
Screenshot to show the problem (before/after pressing enter)