[gobject-introspection/mallard-templates] g-ir-doc-tool: Remove some occurrences of empty Returns: lines



commit 97d0f444bee30a7553e70e3add3236a119d00cf4
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date:   Sun Feb 19 15:33:48 2012 +0100

    g-ir-doc-tool: Remove some occurrences of empty Returns: lines

 giscanner/mallard-Python-function.tmpl             |    2 +-
 .../GIRepository.BaseInfo.unref.page               |    4 ----
 ...IRepository.Repository.prepend_search_path.page |    4 ----
 .../GIRepository.arg_info_load_type.page           |    4 ----
 .../GIRepository.callable_info_load_arg.page       |    4 ----
 ...IRepository.callable_info_load_return_type.page |    4 ----
 .../GIRepository.constant_info_free_value.page     |    4 ----
 7 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/giscanner/mallard-Python-function.tmpl b/giscanner/mallard-Python-function.tmpl
index c9bdf8f..7aa25e8 100644
--- a/giscanner/mallard-Python-function.tmpl
+++ b/giscanner/mallard-Python-function.tmpl
@@ -74,7 +74,7 @@ ${formatter.format(node.doc)}
 <td>${formatter.format(arg.doc)}</td>
 </tr>
 % endfor
-% if node.retval:
+% if node.retval and node.retval.type.ctype != 'void':
 <tr>
 <td><p>Returns :</p></td>
 <td>${formatter.format(node.retval.doc)}</td>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.unref.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.unref.page
index 2958993..0c3e3c5 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.unref.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.BaseInfo.unref.page
@@ -24,9 +24,5 @@ def unref()
 drops to 0, the info is freed.</p>
 
 <table>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
 </table>
 </page>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.prepend_search_path.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.prepend_search_path.page
index 8b124ad..01614b1 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.prepend_search_path.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.prepend_search_path.page
@@ -32,9 +32,5 @@ def prepend_search_path(directory)
 <td><p>directory :</p></td>
 <td></td>
 </tr>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
 </table>
 </page>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.arg_info_load_type.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.arg_info_load_type.page
index 45bbc45..6bbf012 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.arg_info_load_type.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.arg_info_load_type.page
@@ -42,9 +42,5 @@ allocation.</p><p>The initialized @type must not be referenced after @info is de
 <td><p>type :</p></td>
 <td><p>Initialized with information about type of @info</p></td>
 </tr>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
 </table>
 </page>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_arg.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_arg.page
index bc4e7a7..c931c8f 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_arg.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_arg.page
@@ -50,9 +50,5 @@ allocation.</p><p>The initialized @arg must not be referenced after @info is dea
 <td><p>arg :</p></td>
 <td><p>Initialize with argument number @n</p></td>
 </tr>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
 </table>
 </page>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_return_type.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_return_type.page
index c936b2e..b0dbed6 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_return_type.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.callable_info_load_return_type.page
@@ -42,9 +42,5 @@ allocation.</p><p>The initialized @type must not be referenced after @info is de
 <td><p>type :</p></td>
 <td><p>Initialized with return type of @info</p></td>
 </tr>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
 </table>
 </page>
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.constant_info_free_value.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.constant_info_free_value.page
index d026791..e5806ef 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.constant_info_free_value.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.constant_info_free_value.page
@@ -40,10 +40,6 @@ def constant_info_free_value(info, value)
 <td><p>value :</p></td>
 <td><p>the argument</p></td>
 </tr>
-<tr>
-<td><p>Returns :</p></td>
-<td></td>
-</tr>
 </table>
 <p>Since 1.30.1</p>
 </page>



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