﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2482	TIDY: #Tidy_Parameters=/sf  issue	mlipok	Jos	"Version:
Tidy AutoIt3 v2.3.0.20   Copyright (c) Jos van der Zande  September 18, 2013

example scipt:

{{{
#Tidy_Parameters=/sf
Func _test_1()
EndFunc   ;==>_test_1
;~ ##################
Func _test_2()
EndFunc   ;==>_test_2
;~ ##################
Func _test_3()
EndFunc   ;==>_test_3
;~ ##################
Func _test_4()
;~ ##################
EndFunc   ;==>_test_4
;~ ##################
}}}

For now, I can not prepare a better example, so I will use the above.

----

'''Description of issue:'''
Please try to use the example of TIDY
the result will be that:

{{{
#Tidy_Parameters=/sf
;~ ##################
Func _test_1()
EndFunc   ;==>_test_1
;~ ##################
Func _test_2()
EndFunc   ;==>_test_2
;~ ##################
Func _test_3()
EndFunc   ;==>_test_3
;~ ##################
Func _test_4()
;~ ##################
EndFunc   ;==>_test_4
}}}




As you can see TIDY moved the comment from the bottom to the top of the script.

This result, however, is not the worst.
It happened to me that TIDY removed or relocated, the last line that was not a comment but simply ""EndFunc""

Which of course caused the scrypt contained significant error - the function declaration was not completely closed.

That, unfortunately, at the moment I can not reproduce, but I think it is related to the specified issue.
"	Bug	closed		SciTE4AutoIt	3.3.9.21	None	No Bug		
