From: <gr...@us...> - 2005-09-29 08:54:38
|
Author: grubert Date: 2005-09-29 10:54:23 +0200 (Thu, 29 Sep 2005) New Revision: 3911 Modified: trunk/sandbox/oliverr/ht/writer/hthtml.py Log: Add option email cloak and import frontend. Modified: trunk/sandbox/oliverr/ht/writer/hthtml.py =================================================================== --- trunk/sandbox/oliverr/ht/writer/hthtml.py 2005-09-28 13:31:55 UTC (rev 3910) +++ trunk/sandbox/oliverr/ht/writer/hthtml.py 2005-09-29 08:54:23 UTC (rev 3911) @@ -21,7 +21,7 @@ import os from docutils import nodes from docutils import writers -from docutils.writers.html4css1 import HTMLTranslator, utils +from docutils.writers.html4css1 import frontend, HTMLTranslator, utils class Writer(writers.Writer): @@ -68,7 +68,12 @@ {'dest': 'compact_lists', 'action': 'store_false'}), ('Omit the XML declaration. Use with caution.', ['--no-xml-declaration'], {'dest': 'xml_declaration', 'default': 1, - 'action': 'store_false'}),)) + 'action': 'store_false'}), + ('Scramble email addresses to confuse harvesters. ' + 'For example, "ab...@ex..." will become ' + '``<a href="mailto:%61%62%63%40...">abc at example dot org</a>``.', + ['--cloak-email-addresses'], + {'action': 'store_true', 'validator': frontend.validate_boolean}),)) relative_path_settings = ('stylesheet_path',) |