Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hosiet opened this issue Dec 27, 2018 · 2 comments
Closed

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

hosiet opened this issue Dec 27, 2018 · 2 comments
Labels

Comments

@hosiet
Copy link

hosiet commented Dec 27, 2018

% 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
@hosiet
Copy link
Author

hosiet commented Dec 27, 2018

This bug happens for both v5.6.0 and v5.7.17.

@geoffmcl
Copy link
Contributor

@hosiet thank you for the issue, but this is really a repeat of #681...

It is true in Windows and MAC, as well as unix/linux... and yes, I think is a regression from 5.6 onwards...

Some solutions have been discussed there... but no one has got around to coding it yet... any help appreciated... thanks...

Meantime closing this... in deference to open #681 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants