-
Notifications
You must be signed in to change notification settings - Fork 418
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
Config: unknown option: drop-empty-elements #73
Comments
I just tried both of the following and they seem to work fine for me (using commit 1b4dcd0): tidy --drop-empty-elements no <<< '<a></a>'
tidy -config <(echo "drop-empty-elements: no") <<< '<a></a>' Which build method did you use? Are you invoking tidy from an installation or from within the build directory? |
Running your second command, I still receive the same error. I used the instructions from the main page here, "1) make -C build/gmake/, 2) make install -C build/gmake/". I am invoking the tidy program from the command line, which I copied out of the /bin directory after using steps 1 & 2 to make the build, and then I moved it to my programs build directory. Is the one in the /bin folder not the correct one? I didn't find the tidy program in any other directory. |
I did some investigation, and, it looks like I have tidy in my /usr/local/bin/ folder - maybe it's an older install or something, and I am always invoking the wrong one? Not sure exactly how to clear that up, if that even is the issue. |
Yep, that'll be it. That happens to me all the time. If you invoke it as If you try this from the tidy source directory, it should work as expected: make clean -C build/gmake
make -C build/gmake
bin/tidy --drop-empty-elements no <<< '<a></a>'
bin/tidy -config <(echo "drop-empty-elements: no") <<< '<a></a>' To fix your installation, you can do one of these:
|
Thanks! That surely did it! I should have guessed that, because I initially installed tidy from source forge and realized it was missing the features I wanted. Gonna close this issue - thanks for the super helpful response! |
It seems that even though I followed the instructions from the front page, make is giving me a build that does not include the newer features. My other config options work properly, but this one won't
Built with Mac OSX Mountain Lion via terminal
The text was updated successfully, but these errors were encountered: