From: Petr Špaček Date: Wed, 20 Jul 2022 15:57:17 +0000 (+0200) Subject: Support docutils 0.14+dfsg-4 X-Git-Tag: v9.19.4~14^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba10de32d3a2a1311fcaa2492bdfcac626513511;p=thirdparty%2Fbind9.git Support docutils 0.14+dfsg-4 Ancient versions of docutils cannot cope with bare text inside a table cell. Wrap text in a paragraph to work around that. --- diff --git a/doc/arm/_ext/iscconf.py b/doc/arm/_ext/iscconf.py index 598fb26aa3a..10c24040fec 100644 --- a/doc/arm/_ext/iscconf.py +++ b/doc/arm/_ext/iscconf.py @@ -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