[gtk-doc] Don't allow < in ref link targets
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] Don't allow < in ref link targets
- Date: Fri, 7 Feb 2014 21:23:11 +0000 (UTC)
commit 8271bd83729e33c49c6a13d9317f97368ccd9b21
Author: William Jon McCann <william jon mccann gmail com>
Date: Fri Feb 7 16:11:39 2014 -0500
Don't allow < in ref link targets
Fixes build of GTK+ 3.11.5
gtkdoc-mkdb.in | 2 +-
tests/gobject/src/gobject.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 37068a4..615654a 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4988,7 +4988,7 @@ sub MarkDownParseSpanElementsInner {
$element{"#"} = $2;
}
$offset += length ($&);
- } elsif ($remaining_text =~ /^\s*\[([^\]]*?)\]/) {
+ } elsif ($remaining_text =~ /^\s*\[([^\]<]*?)\]/) {
$element{"ref"} = $1;
$offset += length ($&);
} else {
diff --git a/tests/gobject/src/gobject.c b/tests/gobject/src/gobject.c
index 2883c47..7229ee9 100644
--- a/tests/gobject/src/gobject.c
+++ b/tests/gobject/src/gobject.c
@@ -84,7 +84,7 @@
*
* * testing alternate list syntax
*
- * With section text in each.
+ * Don't match this as a link [ style | binding ][ : <replaceable>priority</replaceable> ]
*
* * not sure if we want this one
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]