From ab795f08429366e335de49b7d3e1cbcc71abd3bf Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:24:56 -0600 Subject: [PATCH] Make table title optional in params_to_table function Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- nfdocs-parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nfdocs-parser.py b/nfdocs-parser.py index 99c4f11..2608a38 100755 --- a/nfdocs-parser.py +++ b/nfdocs-parser.py @@ -28,7 +28,8 @@ def definition_type(signature): def params_to_table(type, params): # Create a table params_table = nodes.table() - params_table += nodes.title(text=type) + if type: + params_table += nodes.title(text=type) # Make it two columns wide params_tgroup = nodes.tgroup(cols=2)