Ancient versions of docutils cannot cope with bare text inside a table
cell. Wrap text in a paragraph to work around that.
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)
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