From 33489aa27713c79c78b53a7a5f6f0c535a50de59 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 5 Jan 2022 16:21:21 -0600 Subject: [PATCH] Add named output parsing to tuple parsing function Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- nfdocs-parser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nfdocs-parser.py b/nfdocs-parser.py index d8a31c8..ec5ac82 100755 --- a/nfdocs-parser.py +++ b/nfdocs-parser.py @@ -27,7 +27,10 @@ def definition_type(signature): def params_to_list(params): if "tuple" in params.keys(): - tuple_item = nodes.list_item(text="tuple") + tuple_item = nodes.list_item() + if "name" in params.keys(): + tuple_item += nodes.paragraph(text=params["name"]) + tuple_item += nodes.paragraph(text="Tuple:") tuple_list = nodes.bullet_list() for io in params["tuple"]: tuple_list += params_to_list(io)