mirror of
https://github.com/MillironX/nfdocs-parser.git
synced 2024-11-21 16:46:05 +00:00
Modify IO table to use text nodes when applicable
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
f7744f9463
commit
4993a39d17
1 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ def params_to_table(type, params):
|
|||
if "tuple" in param.keys():
|
||||
# Tuple title
|
||||
param_name_entry = nodes.entry()
|
||||
param_name_entry += nodes.paragraph(text="Tuple")
|
||||
param_name_entry += nodes.Text("Tuple")
|
||||
param_row += param_name_entry
|
||||
|
||||
# Params table
|
||||
|
@ -73,9 +73,9 @@ def params_to_table(type, params):
|
|||
# Parameter title
|
||||
param_name_entry = nodes.entry()
|
||||
if "name" in param.keys():
|
||||
param_name_entry += nodes.paragraph(text=f"{param['name']}({param['type']})")
|
||||
param_name_entry += nodes.Text(f"{param['name']}({param['type']})")
|
||||
else:
|
||||
param_name_entry += nodes.paragraph(text=param["type"])
|
||||
param_name_entry += nodes.Text(param["type"])
|
||||
param_row += param_name_entry
|
||||
|
||||
# Parameter description
|
||||
|
|
Loading…
Reference in a new issue