Skip to content

Need help controlling output #894

@designosis

Description

@designosis

For a while, running tidy -i -m -q -w 0 -ashtml -utf8 filename.html was outputting exactly how I wanted.

<!DOCTYPE html>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <div class="row">
            <div class="col1">Column 1</div>
            <div class="col2">Column 2</div>
        </div>
    </body>
</html>

Wanting to improve my workflow, I added the following to my ~/.tidyrc:

indent: yes
indent-spaces: 4
tidy-mark: no
wrap: 0
quiet: yes

However tidy began adding newlines after <div class="url"> and any content in the <div>.

            <div class="col1">
                Column 1
            </div>

Now, no matter what I try (even removing .tidyrc) I can't seem to get that functionality back. Did I hallucinate that it did this before? I really prefer content within tags to remain on the same line.

What combination of .tidyrc parameters and command-line flags allows this to happen?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions