[gtk-doc] mkdb: only look for annotations at the start of docs
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkdb: only look for annotations at the start of docs
- Date: Thu, 19 Aug 2010 10:37:14 +0000 (UTC)
commit 779009ed3a2f3cb276be93db5e7906f6ba673951
Author: Stefan Kost <ensonic users sf net>
Date: Thu Jul 15 09:58:14 2010 +0300
mkdb: only look for annotations at the start of docs
Fixes gtk-doc picking up e.g. "bla (shadows ...) bla" in the middle of docs.
gtkdoc-mkdb.in | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 1b98ef4..a6a1af4 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -2605,8 +2605,9 @@ sub ConvertSGMLCharsCallback2 {
sub ExpandAnnotation {
my ($symbol, $param_desc) = @_;
my $param_annotations = "";
-
- if ($param_desc =~ m%\s*\((.*)\):%) {
+
+ # look for annotations at the start of the comment
+ if ($param_desc =~ m%^\s*\(([^)]*)\):%) {
my @annotations;
my $annotation;
my $annotation_extra = "";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]