[html-tidy] <none>

Greetings,

I am having trouble getting mod_tidy working and not sure where to begin to
troubleshoot this. I have a file tidy.config and I am not sure what format
to use to create the config options. I tried the following...

=========
# sample config file for HTML tidy
indent: auto
indent-spaces: 2
wrap: 72
markup: yes
....
=========

With this code I get the following server error...

Syntax error on line 3 of /etc/apache2/mods-enabled/tidy.conf:
Invalid command 'indent:', perhaps misspelled or defined by a module not
included in the server configuration
Action 'configtest' failed.

So I tried with another format I found online...

=========
# sample config file for HTML tidy
    TidyOption accessibility-check 3
    TidyOption add-xml-decl yes
    TidyOption char-encoding utf8
    TidyOption enclose-text yes
    TidyOption indent auto
=========

With this code I do not get any error. But it does not seem to work. When I
check the source code of web pages server by my server they are not
affected. Obviously my config file is being successfully read since one
format throws errors and the other does not.

I am seeking advice on how to get mod_tidy working for my Apache2 server.
Can anybody kindly help me troubleshoot this?

Many thanks
Kevin

Received on Tuesday, 3 September 2013 21:20:11 UTC