Skip to content

robotidy --separator tab does not respect tabs in Settings #535

Open
@antonvw

Description

@antonvw

When using robotidy on robot framework file that has a Settings section containing tabs, it replaces tabs with space even if --separator tab is used.

Activity

bhirsz

bhirsz commented on Jun 12, 2023

@bhirsz
Member

Thanks for the report, I will investigate it.

bhirsz

bhirsz commented on Jun 12, 2023

@bhirsz
Member

I can reproduce it and I will fix it - robotidy should respect tab separator. Though since we mostly focus on space support it's the issue for most of our transformers. For example following variables section will be also formatted to use space regardless of separator value:

*** Variables ***
${SHORT}	a
${LONG_VARIABLE_NAME}	b

I can add some tests to see to catch and fix those issues, but feel free to report similar cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @antonvw@bhirsz

        Issue actions

          robotidy --separator tab does not respect tabs in Settings · Issue #535 · MarketSquare/robotframework-tidy