[elbe-devel] [PATCH 2/6] docs: add colwidth attribute to colspec node

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Jul 15 15:15:14 CEST 2024


While newer version of docutils/Sphinx handle their absence, older ones
fail in that case.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 docs/ext/xmlschema.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/ext/xmlschema.py b/docs/ext/xmlschema.py
index a416db7b1f29..320a90ad0502 100644
--- a/docs/ext/xmlschema.py
+++ b/docs/ext/xmlschema.py
@@ -176,7 +176,7 @@ class XmlSchema(SphinxDirective):
             restrictions += nodes.title(text='Restrictions')
             table = nodes.table()
             tgroup = nodes.tgroup()
-            tgroup += [nodes.colspec(), nodes.colspec()]
+            tgroup += [nodes.colspec(colwidth=1), nodes.colspec(colwidth=1)]
             tbody = nodes.tbody()
             for r in n.node(RSTR):
                 row = nodes.row()

-- 
2.45.2



More information about the elbe-devel mailing list