]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Support docutils 0.14+dfsg-4
authorPetr Špaček <pspacek@isc.org>
Wed, 20 Jul 2022 15:57:17 +0000 (17:57 +0200)
committerPetr Špaček <pspacek@isc.org>
Thu, 21 Jul 2022 13:26:22 +0000 (15:26 +0200)
Ancient versions of docutils cannot cope with bare text inside a table
cell. Wrap text in a paragraph to work around that.

(cherry picked from commit af5bbb433afca3bb600bd409c7421d33c3552aaa)

doc/arm/_ext/iscconf.py

index 598fb26aa3a2cb49c0f83f8ae1b5cef2e4260150..10c24040fec5743a037fcb08da3f79a1698ca012 100644 (file)
@@ -547,7 +547,7 @@ class DictToDocutilsTableBuilder:
         row = nodes.row()
         for column in self.header:
             entry = nodes.entry()
-            entry += nodes.Text(column.description)
+            entry += nodes.paragraph(text=column.description)
             row += entry
 
         thead.append(row)
@@ -562,7 +562,7 @@ class DictToDocutilsTableBuilder:
                 entry = nodes.entry()
                 value = obj[column.dictkey]
                 if isinstance(value, str):
-                    value = nodes.Text(value)
+                    value = nodes.paragraph(text=value)
                 else:
                     value = value.deepcopy()
                 entry += value