Skip to content

Tidy just intent first level, not nested levels #916

Open
@dehghani-mehdi

Description

@dehghani-mehdi

I'm using latest version, imagine following html:

<main><header>header</header></main>

With this options:

indent: auto
indent-with-tabs: yes
keep-tabs: yes
wrap: 0
merge-divs: no
merge-spans: no

Expected result would be:

<main>
    <header>
        header
    </header>
</main>

But Tidy generates this:

<main>
<header>
header
</header>
</main>

I could not find any related option, is there any way to tell Tidy to intent nested levels too?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions