[gtk-doc] mkdb: escape quotes in condition attributes
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkdb: escape quotes in condition attributes
- Date: Fri, 28 Jun 2013 15:42:11 +0000 (UTC)
commit 4d5bc7d20ed7798e854c69c081a924af1e368e3d
Author: Stefan Sauer <ensonic users sf net>
Date: Fri Jun 28 17:40:39 2013 +0200
mkdb: escape quotes in condition attributes
Fixes the use of "" in the text of deprecation description. Add a test.
gtkdoc-mkdb.in | 4 +++-
tests/bugs/docs/tester-sections.txt | 1 +
tests/bugs/src/tester.c | 11 +++++++++++
tests/bugs/src/tester.h | 4 ++++
4 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index b08c0b7..eb11093 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -3093,7 +3093,9 @@ sub MakeConditionDescription {
}
if ($desc ne "") {
- $desc=" condition=\"".$desc."\"";
+ my $cond = $desc;
+ $cond =~ s/\"/"/g;
+ $desc=" condition=\"".$cond."\"";
#print "condition for '$symbol' = '$desc'\n";
}
return $desc;
diff --git a/tests/bugs/docs/tester-sections.txt b/tests/bugs/docs/tester-sections.txt
index 981e7f4..e03d838 100644
--- a/tests/bugs/docs/tester-sections.txt
+++ b/tests/bugs/docs/tester-sections.txt
@@ -62,6 +62,7 @@ bug_624001b
bug_624001c
bug_624001d
bug_624001e
+deprecation_notice
gst_play_marshal_BUFFER__BOXED
<SUBSECTION Standard>
<SUBSECTION Private>
diff --git a/tests/bugs/src/tester.c b/tests/bugs/src/tester.c
index dfdd229..3e60f84 100644
--- a/tests/bugs/src/tester.c
+++ b/tests/bugs/src/tester.c
@@ -396,3 +396,14 @@ void bug_624001e(void)
{
}
+/**
+ * deprecation_notice:
+ *
+ * Foo.
+ *
+ * Deprecated: 3.10: Use named icon "bar" instead.
+ */
+void deprecation_notice(void)
+{
+}
+
diff --git a/tests/bugs/src/tester.h b/tests/bugs/src/tester.h
index 6dc2ee9..0349d71 100644
--- a/tests/bugs/src/tester.h
+++ b/tests/bugs/src/tester.h
@@ -483,4 +483,8 @@ void bug_624001d(void);
GLIB_DEPRECATED
void bug_624001e (void);
+#ifdef GTKDOC_DISABLE_DEPRECATED
+void deprecation_notice(void);
+#endif
+
#endif // GTKDOC_TESTER_H
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]