From: David G. <go...@py...> - 2005-09-01 00:48:15
|
[Martin Blais] > Hi > > I would like to add an option to rst2html.py to remove comment nodes > so that commented text does not show up in the output HTML (right now > REST comments are translated as HTML comments, so still visible by the > user in the HTML!). > > Any opposition to that? None from me. > Any preference on how it should be implemented? Yes, as a --strip-comments command-line option (& strip_comments runtime setting), declared in docutils/frontend.py, and implemented as a transform. This feature isn't specific to rst2html.py, or to the HTML Writer, or to the reST parser; it applies to Docutils as a whole. -- David Goodger <http://python.net/~goodger> |