2.5.0
New release of the Robotidy: 2.5.0. In this release we have added new transformer (IndentNestedKeywords) and enhanced autoformatting in NormalizeNewLines. For more information read the details below.
To upgrade to Robotidy 2.5.0 run following:
pip install -U robotframework-tidy
Indent run keywords
New IndentNestedKeywords transformer for formatting whitespace in run keywords variants such as Run Keywords or
Run Keyword And Continue On Failure. It will result in transforming following code:
Run Keyword Run Keyword If ${True} Run keywords Log foo AND Log bar ELSE Log bazto:
Run Keyword
... Run Keyword If ${True}
... Run keywords
... Log foo
... AND
... Log bar
... ELSE
... Log bazRemove empty lines in multiline statements
NormalizeNewLines transformer now removes empty lines inside multiline statements. Such lines are allowed by Robot Framework but decrease readilibity:
*** Keywords ***
Keyword
Keyword With
... Multiline arguments
... With empty lineswill be formatted to:
*** Keywords ***
Keyword
Keyword With
... Multiline arguments
... With empty lines