From: <bl...@us...> - 2005-06-30 18:07:57
|
Author: blais Date: 2005-06-30 19:19:48 +0200 (Thu, 30 Jun 2005) New Revision: 3641 Modified: trunk/docutils/docutils/core.py Log: Fixed bug with setting the writer in the publisher from doctree. Modified: trunk/docutils/docutils/core.py =================================================================== --- trunk/docutils/docutils/core.py 2005-06-30 15:57:59 UTC (rev 3640) +++ trunk/docutils/docutils/core.py 2005-06-30 17:19:48 UTC (rev 3641) @@ -493,7 +493,8 @@ pub = Publisher(reader, None, writer, source=io.DocTreeInput(document), destination_class=io.StringOutput, settings=settings) - pub.set_writer(writer_name) + if not writer and writer_name: + pub.set_writer(writer_name) pub.process_programmatic_settings( settings_spec, settings_overrides, config_section) pub.set_destination(None, destination_path) |