Commit ba8f7354 authored by Christian Hergert's avatar Christian Hergert

function: cleanup parameter list

parent 62f6b0ef
......@@ -974,7 +974,7 @@ girst_parameter_annotations (GirstParameter *param)
!girst_str_equal0 (val, "none"))
g_string_append_printf (str, " ``transfer %s``", val);
return g_string_free (str, FALSE);
return g_strstrip (g_string_free (str, FALSE));
}
gchar *
......
......@@ -28,13 +28,8 @@
{{if function.has_child_typed(Girst.Parameters)}}
{{Girst.title4("Parameters")}}
.. csv-table::
:class: column1-right column1-code column2-code
:widths: 1, 1, 100
:escape: \
{{for param in function.get_parameters()}}
"{{Girst.clink_full(param.get_lhs_ctype(), param.get_lhs(), "")}}","{{param.name}}","{{if param.has_child_typed(Girst.Doc)}}{{Girst.one_line(param.first_typed(Girst.Doc).inner_text, "c")}}{{end}} {{param.annotations()}}"
- **{{param.name}}**: {{if param.annotations()}}{{param.annotations()}}: {{end}}{{if param.has_child_typed(Girst.Doc)}}{{Girst.one_line(param.first_typed(Girst.Doc).inner_text, "c")}}{{else}}{{Girst.clink_full(param.get_lhs_ctype(), param.get_lhs(), "")}}{{end}}
{{end}}
{{end}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment