[gtk-doc] mkdb: don't switch sections on since/deprecated tags in param docs
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkdb: don't switch sections on since/deprecated tags in param docs
- Date: Mon, 21 May 2012 13:57:33 +0000 (UTC)
commit 47abcd53b8489ebceec9e394676512a181c1f1f6
Author: Stefan Sauer <ensonic users sf net>
Date: Mon May 21 15:55:20 2012 +0200
mkdb: don't switch sections on since/deprecated tags in param docs
gtkdoc-mkdb.in | 18 ++++++++++++------
tests/gobject/src/gtypes.h | 1 +
2 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index d9b6f07..2dafbea 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -3940,13 +3940,19 @@ sub ScanSourceFile {
$in_part = "return";
next;
} elsif (m%^\s*since:%i) {
- $since_desc = $';
- $in_part = "since";
- next;
+ # we're in param section and have not seen the blank line
+ if($in_part ne "") {
+ $since_desc = $';
+ $in_part = "since";
+ next;
+ }
} elsif (m%^\s*deprecated:%i) {
- $deprecated_desc = $';
- $in_part = "deprecated";
- next;
+ # we're in param section and have not seen the blank line
+ if($in_part ne "") {
+ $deprecated_desc = $';
+ $in_part = "deprecated";
+ next;
+ }
} elsif (m%^\s*stability:%i) {
$stability_desc = $';
$in_part = "stability";
diff --git a/tests/gobject/src/gtypes.h b/tests/gobject/src/gtypes.h
index 7edb7bf..8550f7d 100644
--- a/tests/gobject/src/gtypes.h
+++ b/tests/gobject/src/gtypes.h
@@ -13,6 +13,7 @@
* GtkdocEnum:
* @GTKDOC_ENUM_V1: first
* @GTKDOC_ENUM_V2: second
+ * Since: 0.10
*
* Enum values for the #GtkdocEnum type.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]