Skip to content
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

--tidy-mark no inserts blank line #760

Closed
jcubic opened this issue Oct 9, 2018 · 2 comments
Closed

--tidy-mark no inserts blank line #760

jcubic opened this issue Oct 9, 2018 · 2 comments

Comments

@jcubic
Copy link

jcubic commented Oct 9, 2018

If you use this option to remove meta tag generator (I have it already from Jekyll that I wan to keep) it don't remove newline and you have one blank line in place of generated meta tag.

@geoffmcl
Copy link
Contributor

@jcubic I am afraid I do not understand the issue... sorry...

While I do think the API docs tidy-mark leaves a lot to be desired by way of explanation of exactly what will happen in various cases, nowhere can I read it is an option to remove meta tag generator...

That is, it will never remove a meta tag...

In a specific circumstance, that it can find an existing meta tag of the exact form <meta name="generator" content="HTML Tidy[ $version]"> it can modify the specific [$version]... but never remove the tag...

The option --tidy-mark no means libtidy, in the API tidyCleanAndRepair( TidyDoc ), in tidyDocCleanAndRepair(doc), does not run the internal service TY_(AddGenerator)(doc);... so nothing is added, modified, or removed...

Show the version of tidy in use, provide sample html input, and config used, showing current tidy output, and then the expected output... showing say the blank line you mention... thanks...

@jcubic
Copy link
Author

jcubic commented Oct 29, 2018

Sorry, I think I use some old version, I've updated the code recently and it now works fine.

It leave some blank lines but not in place of generator meta tag.

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

No branches or pull requests

2 participants