[valadoc] doclets/gtkdoclet: Do not add an header only for annotations if the comment is empty



commit e69bfc236ec58aff78d572170462564bd0a08b90
Author: Luca Bruno <lethalman88 gmail com>
Date:   Tue May 4 22:01:24 2010 +0200

    doclets/gtkdoclet: Do not add an header only for annotations if the comment is empty

 src/doclets/gtkdoc/generator.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala
index 98446bb..5efc7db 100644
--- a/src/doclets/gtkdoc/generator.vala
+++ b/src/doclets/gtkdoc/generator.vala
@@ -190,7 +190,7 @@ public class Gtkdoc.Generator : Api.Visitor {
 	}
 
 	private void add_header (string name, Comment? comment, string[]? annotations = null) {
-		if (comment == null && annotations == null) {
+		if (comment == null) {
 			return;
 		}
 
@@ -446,7 +446,7 @@ public class Gtkdoc.Generator : Api.Visitor {
 		if (param.parameter_type.data_type is Api.Array) {
 			annotations += "array length=%s".printf (param.name+"_length1");
 		} 
-		  
+
 		add_header (param.name, param.documentation, annotations);
 		param.accept_all_children (this);
 	}



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