SF.net SVN: docutils:[9811 ] trunk/docutils/tools/buil dhtml.py

aa-turner--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9811
          http://sourceforge.net/p/docutils/code/9811
Author:   aa-turner
Date:     2024-08-01 07:32:03 +0000 (Thu, 01 Aug 2024)
Log Message:
-----------
Fix tools/buildhtml.py

Modified Paths:
--------------
    trunk/docutils/tools/buildhtml.py

Modified: trunk/docutils/tools/buildhtml.py
===================================================================
--- trunk/docutils/tools/buildhtml.py	2024-08-01 07:22:07 UTC (rev 9810)
+++ trunk/docutils/tools/buildhtml.py	2024-08-01 07:32:03 UTC (rev 9811)
@@ -179,10 +179,6 @@
 
     def __init__(self) -> None:
         self.publishers = self.publishers.copy()
-        self.setup_publishers()
-        # default html writer (may change to html5 some time):
-        self.publishers['html'] = self.publishers['html4']
-
         with warnings.catch_warnings():
             warnings.filterwarnings('ignore', category=DeprecationWarning)
             self.settings_spec = frontend.Values()
@@ -189,6 +185,10 @@
             self.initial_settings = frontend.Values()
         self.directories = []
 
+        self.setup_publishers()
+        # default html writer (may change to html5 some time):
+        self.publishers['html'] = self.publishers['html4']
+
     def setup_publishers(self) -> None:
         """
         Manage configurations for individual publishers.

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.