Rubberduck
Rubberduck copied to clipboard
More inconsistent indentation with line continuation
Rubberduck version information
Version 2.5.2.6062
OS: Microsoft Windows NT 10.0.19042.0, x64
Host Product: Microsoft Office x64
Host Version: 16.0.14326.20784
Host Executable: MSACCESS.EXE
Description
Another instance of inconsistent indentation by the indenter. In this case, it's a line that concatenates the results of string returning functions that doesn't work.
To Reproduce Steps to reproduce the behavior:
EmailFooter = Tools.GetGeneralConfig("EmailRecord.Class_Initalize", "SurveyEmail", "OccHealthFooter1") & _
Tools.GetGeneralConfig("EmailRecord.Class_Initalize", "SurveyEmail", "OccHealthFooter2") & _
Tools.GetGeneralConfig("EmailRecord.Class_Initalize", "SurveyEmail", "OccHealthFooter3")
indents to
EmailFooter = Tools.GetGeneralConfig("EmailRecord.Class_Initalize", "SurveyEmail", "OccHealthFooter1") & _
Tools.GetGeneralConfig("EmailRecord.Class_Initalize", "SurveyEmail", "OccHealthFooter2") & _
Tools.GetGeneralConfig("EmailRecord.Class_Initalize", "SurveyEmail", "OccHealthFooter3")
However, this code:
If DevelopmentMode Then
body = "This is a TEST EMAIL" & SINGLE_LINE_BREAK & _
"It would have been emailed to: " & DeliveryEmailAddress(True) & "<hr>" & DOUBLE_LINE_BREAK & body
End If
indents to:
If DevelopmentMode Then
body = "This is a TEST EMAIL" & SINGLE_LINE_BREAK & _
"It would have been emailed to: " & DeliveryEmailAddress(True) & "<hr>" & DOUBLE_LINE_BREAK & body
End If
Expected behavior
consistently lining up line continuations on the = as in the second example
Screenshots N/A
Logfile RubberduckLog.txt NOTE: I've been doing a fair bit of editing - there is going to be a lot of unrelated stuff. Any errors should be at/near the end of the log.
Additional context Related: #5852 , #4632 , #4342