Skip to content

Cannot handle read-only html files (possibly regression?) #789

Description

@hosiet
% bash
hosiet@hosiet-mi:~$ export LANG=C
hosiet@hosiet-mi:~$ cat test.html
<!DOCTYPE html>
<html><head><title>hello</title><body></body></html>
hosiet@hosiet-mi:~$ ls -la ./test.html
-r--r--r-- 1 hosiet hosiet 69 Dec 26 12:50 ./test.html
hosiet@hosiet-mi:~$ tidy -ascii -i a.html
Document: "a.html" is not a file!


About HTML Tidy: https://github.com/htacg/tidy-html5
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
Validate your HTML documents: http://validator.w3.org/nu/
Lobby your company to join the W3C: http://www.w3.org/Consortium

Do you speak a language other than English, or a different variant of 
English? Consider helping us to localize HTML Tidy. For details please see 
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md

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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions