mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 14:19:59 -04:00
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.
This commit is contained in:
parent
9405435a98
commit
ba10de32d3
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue