[gi-docgen/ebassi/argument-annotation: 3/8] template: Add period at the end of generated blurbs




commit aa3be1a9102c535304eb0da0e8ca418f9c54ec89
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue May 18 16:18:02 2021 +0100

    template: Add period at the end of generated blurbs

 gidocgen/templates/basic/method.html | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gidocgen/templates/basic/method.html b/gidocgen/templates/basic/method.html
index 6bb609c..435ee3a 100644
--- a/gidocgen/templates/basic/method.html
+++ b/gidocgen/templates/basic/method.html
@@ -115,18 +115,18 @@ SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later
             {%- endif -%}
             </td>
           </tr>
-          {% if arg.direction != "in" %}<tr><td>&nbsp;</td><td>Direction: {{ arg.direction }}</td>.</tr>{% 
endif %}
-          {% if arg.direction == "in" and arg.is_pointer and arg.nullable %}<tr><td>&nbsp;</td><td>Can be 
<code>NULL</code></td>.</tr>{% endif %}
-          {% if arg.direction == "out" and arg.optional %}<tr><td>&nbsp;</td><td>Can be 
<code>NULL</code></td>.</tr>{% endif %}
-          {% if arg.is_array and arg.zero_terminated %}<tr><td>&nbsp;</td><td>The array must be 
<code>NULL</code> terminated</td>.</tr>{% endif %}
-          {% if arg.is_array and arg.fixed_size > 0 %}<tr><td>&nbsp;</td><td>The array must have {{ 
arg.fixed_size }} elements</td>.</tr>{% endif %}
-          {% if arg.is_array and arg.len_arg %}<tr><td>&nbsp;</td><td>The length of the array is in the 
<code>{{ arg.len_arg }}</code> argument</td>.</tr>{% endif %}
-          {% if arg.is_pointer %}<tr><td>&nbsp;</td><td title="transfer: {{ arg.transfer }}">{{ 
arg.transfer_note }}</td></tr>{% endif %}
-          {% if arg.string_note %}<tr><td>&nbsp;</td><td>{{ arg.string_note }}</td></tr>{% endif %}
           <tr class="arg-description">
             <td>&nbsp;</td>
             <td>{{ arg.description|safe }}</td>
           </tr>
+          {% if arg.direction != "in" %}<tr><td>&nbsp;</td><td>Direction: {{ arg.direction }}</td>.</tr>{% 
endif %}
+          {% if arg.direction == "in" and arg.is_pointer and arg.nullable %}<tr><td>&nbsp;</td><td>Can be 
<code>NULL</code>.</td></tr>{% endif %}
+          {% if arg.direction == "out" and arg.optional %}<tr><td>&nbsp;</td><td>Can be 
<code>NULL</code>.</td></tr>{% endif %}
+          {% if arg.is_array and arg.zero_terminated %}<tr><td>&nbsp;</td><td>The array must be 
<code>NULL</code>-terminated.</td></tr>{% endif %}
+          {% if arg.is_array and arg.fixed_size > 0 %}<tr><td>&nbsp;</td><td>The array must have {{ 
arg.fixed_size }} elements.</td></tr>{% endif %}
+          {% if arg.is_array and arg.len_arg %}<tr><td>&nbsp;</td><td>The length of the array is in the 
<code>{{ arg.len_arg }}</code> argument.</td></tr>{% endif %}
+          {% if arg.is_pointer %}<tr><td>&nbsp;</td><td title="transfer: {{ arg.transfer }}">{{ 
arg.transfer_note }}</td></tr>{% endif %}
+          {% if arg.string_note %}<tr><td>&nbsp;</td><td>{{ arg.string_note }}</td></tr>{% endif %}
           {% endfor %}
         </table>
       </div>
@@ -156,11 +156,11 @@ SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later
           <tr class="arg-description">
             <td colspan="2">{{ method.return_value.description|safe }}</td>
           </tr>
-          {% if method.return_value.is_array and method.return_value.zero_terminated 
%}<tr><td>&nbsp;</td><td>The array must be <code>NULL</code> terminated</td></tr>{% endif %}
-          {% if method.return_value.is_array and method.return_value.fixed_size > 0 
%}<tr><td>&nbsp;</td><td>The array must have {{ method.return_value.fixed_size }} elements</td></tr>{% endif 
%}
-          {% if method.return_value.is_array and method.return_value.len_arg %}<tr><td>&nbsp;</td><td>The 
length of the array is in the <code>{{ method.return_value.len_arg }}</code> argument</td></tr>{% endif %}
+          {% if method.return_value.is_array and method.return_value.zero_terminated 
%}<tr><td>&nbsp;</td><td>The array must be <code>NULL</code>-terminated.</td></tr>{% endif %}
+          {% if method.return_value.is_array and method.return_value.fixed_size > 0 
%}<tr><td>&nbsp;</td><td>The array must have {{ method.return_value.fixed_size }} elements.</td></tr>{% endif 
%}
+          {% if method.return_value.is_array and method.return_value.len_arg %}<tr><td>&nbsp;</td><td>The 
length of the array is in the <code>{{ method.return_value.len_arg }}</code> argument.</td></tr>{% endif %}
           {% if method.return_value.is_pointer %}<tr><td title="transfer: {{ method.return_value.transfer 
}}">{{ method.return_value.transfer_note }}</td></tr>{% endif %}
-          {% if method.return_value.is_pointer and method.return_value.nullable %}<tr><td>Can be 
<code>NULL</code></td></tr>{% endif %}
+          {% if method.return_value.is_pointer and method.return_value.nullable %}<tr><td>Can be 
<code>NULL</code>.</td></tr>{% endif %}
           {% if method.return_value.string_note %}<tr><td>{{ method.return_value.string_note }}</td></tr>{% 
endif %}
         </table>
       </div>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]