* Support docutils 0.22 changes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pelican?expand=0&rev=62
16 lines
694 B
Diff
16 lines
694 B
Diff
Index: pelican-4.11.0/pelican/readers.py
|
|
===================================================================
|
|
--- pelican-4.11.0.orig/pelican/readers.py
|
|
+++ pelican-4.11.0/pelican/readers.py
|
|
@@ -266,9 +266,9 @@ class RstReader(BaseReader):
|
|
extra_params.update(user_params)
|
|
|
|
pub = docutils.core.Publisher(
|
|
+ reader="standalone", parser="restructuredtext",
|
|
writer=self.writer_class(), destination_class=docutils.io.StringOutput
|
|
)
|
|
- pub.set_components("standalone", "restructuredtext", "html")
|
|
pub.process_programmatic_settings(None, extra_params, None)
|
|
pub.set_source(source_path=source_path)
|
|
pub.publish()
|