diff --git a/docs/releasenotes/4.4.1.rst b/docs/releasenotes/4.4.1.rst deleted file mode 100644 index b7d9ed53..00000000 --- a/docs/releasenotes/4.4.1.rst +++ /dev/null @@ -1,50 +0,0 @@ -================ -Robotidy 4.4.1 -================ - -Fixes related to Robot Framework 6.1 changes. Also fixed ``NormalizeSeparators`` not handling Inline Ifs when ``flatten_lines`` is set to True. - -You can install the latest available version by running:: - - pip install --upgrade robotframework-tidy - -or to install exactly this version:: - - pip install robotframework-tidy==4.4.1 - - -Fixes -===== - -Robot Framework 6.1 fixes (#550) --------------------------------- - -- ``Translate`` transformer should now properly handle creating Comments section (if needed), -- Missing settings translations should now be ignored by ``Translate`` transformer, -- Files with invalid sections (for example unrecognized translated section names) should be ignored by - ``MergeAndOrderSections`` - -``NormalizeSeparators`` with ``flatten_lines=True`` not handling Inline IFs (#548) ------------------------------------------------------------------------------------ - -Robotidy should now correctly handles Inline IFs in ``NormalizeSeparators`` transformer with ``flatten_lines=True``. -Previously, spacing before `ELSE` and `ELSE IF` branches was set to 0:: - - IF ${value}>0 Do Thing ELSE Do Other Thing - -it was transformed to:: - - IF ${value}>0 Do ThingELSE Do Other Thing - -Additionally, number of spaces before `ELSE` and `ELSE IF` in Inline IFs should now be calculated correctly -(based on the separator length and not indentation). - -Invalid variable case with extended syntax in RenameVariables (#551) --------------------------------------------------------------------- - -Robotidy should now be able to recognize variables using extended variable syntax and set variable case accordingly:: - - *** Test Cases *** - Simple math operations - ${i} Set Variable ${0} - Log ${i+1} # i+1 instead of previous I+1 diff --git a/docs/releasenotes/unreleased/fixes.1.rst b/docs/releasenotes/unreleased/fixes.1.rst new file mode 100644 index 00000000..5171e1e0 --- /dev/null +++ b/docs/releasenotes/unreleased/fixes.1.rst @@ -0,0 +1,7 @@ +Robot Framework 6.1 fixes (#550) +-------------------------------- + +- ``Translate`` transformer should now properly handle creating Comments section (if needed), +- Missing settings translations should now be ignored by ``Translate`` transformer, +- Files with invalid sections (for example unrecognized translated section names) should be ignored by + ``MergeAndOrderSections`` diff --git a/docs/releasenotes/unreleased/fixes.2.rst b/docs/releasenotes/unreleased/fixes.2.rst new file mode 100644 index 00000000..2ff9f895 --- /dev/null +++ b/docs/releasenotes/unreleased/fixes.2.rst @@ -0,0 +1,14 @@ +``NormalizeSeparators`` with ``flatten_lines=True`` not handling Inline IFs (#548) +----------------------------------------------------------------------------------- + +Robotidy should now correctly handles Inline IFs in ``NormalizeSeparators`` transformer with ``flatten_lines=True``. +Previously, spacing before `ELSE` and `ELSE IF` branches was set to 0:: + + IF ${value}>0 Do Thing ELSE Do Other Thing + +it was transformed to:: + + IF ${value}>0 Do ThingELSE Do Other Thing + +Additionally, number of spaces before `ELSE` and `ELSE IF` in Inline IFs should now be calculated correctly +(based on the separator length and not indentation). diff --git a/docs/releasenotes/unreleased/fixes.3.rst b/docs/releasenotes/unreleased/fixes.3.rst new file mode 100644 index 00000000..30d0af62 --- /dev/null +++ b/docs/releasenotes/unreleased/fixes.3.rst @@ -0,0 +1,9 @@ +Invalid variable case with extended syntax in RenameVariables (#551) +-------------------------------------------------------------------- + +Robotidy should now be able to recognize variables using extended variable syntax and set variable case accordingly:: + + *** Test Cases *** + Simple math operations + ${i} Set Variable ${0} + Log ${i+1} # i+1 instead of previous I+1 diff --git a/docs/releasenotes/unreleased/summary.rst b/docs/releasenotes/unreleased/summary.rst new file mode 100644 index 00000000..632ab4b8 --- /dev/null +++ b/docs/releasenotes/unreleased/summary.rst @@ -0,0 +1 @@ +Fixes related to Robot Framework 6.1 changes. Also fixed ``NormalizeSeparators`` not handling Inline Ifs when ``flatten_lines`` is set to True. \ No newline at end of file diff --git a/docs/releasenotes/unreleased/template.jinja b/docs/releasenotes/unreleased/template.jinja new file mode 100644 index 00000000..ffa3a3a5 --- /dev/null +++ b/docs/releasenotes/unreleased/template.jinja @@ -0,0 +1,42 @@ +:orphan: + +============== +Robotidy {{ version }} +============== + +{{ summary }} + +You can install the latest available version by running + +:: + + pip install --upgrade robotframework-tidy + +or to install exactly this version + +:: + + pip install robotframework-tidy=={{ version }} + +.. contents:: + :depth: 2 + :local: + +{% if transformers|length > 0 %} +Transformers changes +==================== + +{% for note in transformers %}{{ note }}{% endfor %} +{% endif -%} + +{% if fixes|length > 0 %} +Fixes +===== +{% for note in fixes %}{{ note }}{% endfor %} +{% endif -%} + +{% if other|length > 0 %} +Other features +============== +{% for note in other %}{{ note }}{% endfor %} +{% endif -%}