Skip to content

[Question] How to use tidy for multiple files? #668

Description

@Kristinita

1. Briefly

I don't find, how I can modify multiple files in multiple folders use HTML Tidy.

2. Structure

Example site structure:

output
    SashaTest
        SashaTest.html
    TidyTest
        TidyTest.html

In real project I have more than 100 HTML files.

3. Expected behavior

Modifying SashaTest.html and TidyTest.html files.

It works for me for single files:

D:\SashaPelicanTest>tidy -mq "output/TidyTest/TidyTest.html"
line 12 column 16 - Warning: trimming empty <span>

4. Actual behavior

I can't use glob patterns, examples:

D:\SashaPelicanTest>tidy -mq "output/**/*.html"
Error: Can't open "output/**/*.html"
D:\SashaPelicanTest>tidy -mq *.html
Error: Can't open "*.html"

5. Did not help

I use Grunt for building my site. grunt-htmltidy support multiple files, but plugin works with bugs and, possibly, no longer maintained, see #6.

Thanks.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions