Bug 418172 - [Templates] Incorrect indentation quickfix broken
Summary: [Templates] Incorrect indentation quickfix broken
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.4.3   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-27 07:32 EDT by Sven Efftinge CLA
Modified: 2013-09-27 07:32 EDT (History)
0 users

See Also:


Attachments
screenshot showing the whitespace and the warning (17.81 KB, image/png)
2013-09-27 07:32 EDT, Sven Efftinge CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Efftinge CLA 2013-09-27 07:32:02 EDT
Wit the following code:

    def incorrectIndentation(boolean x) '''
        «IF x»
            bla
        «ELSEIF x»
			«IF x»
				foo
			«ELSE»
				bar
			«ENDIF»
        «ENDIF»
    '''

I get a warning on the then part of the second IF statement with a quickfix that doesn't fix. Instead it toggles between two invalid states.

If I apply the quick fixes very fast then the document gets corrupted.
Comment 1 Sven Efftinge CLA 2013-09-27 07:32:37 EDT
Created attachment 235888 [details]
screenshot showing the whitespace and the warning