[gtk-doc] Fix "Deprecated: X.Y" without additional message
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] Fix "Deprecated: X.Y" without additional message
- Date: Fri, 7 Feb 2014 07:08:40 +0000 (UTC)
commit fb4b420376de65d4bb3daaeb16a3132fc3629722
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Sep 24 16:17:47 2013 +0200
Fix "Deprecated: X.Y" without additional message
When we want to deprecate a symbol without adding an additional message,
like "Use blah() instead". It can be useful when there is no
replacement, or when we are lazy.
https://bugzilla.gnome.org/show_bug.cgi?id=707717
gtkdoc-mkdb.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 8e72d88..a273aea 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -3077,14 +3077,14 @@ sub MakeDeprecationNote {
if (exists $Deprecated{$symbol}) {
$desc .= "<warning>";
- if ($Deprecated{$symbol} =~ /^\s*([0-9\.]+)\s*:/) {
+ if ($Deprecated{$symbol} =~ /^\s*([0-9\.]+)\s*:?/) {
$desc .= "<para><literal>$symbol</literal> has been deprecated since version $1 and should
not be used in newly-written code.";
} else {
$desc .= "<para><literal>$symbol</literal> is deprecated and should not be used in
newly-written code.";
}
if ($Deprecated{$symbol} ne "") {
$note = &ConvertMarkDown($symbol, $Deprecated{$symbol});
- $note =~ s/^\s*([0-9\.]+)\s*:\s*//;
+ $note =~ s/^\s*([0-9\.]+)\s*:?\s*//;
$note =~ s/^\s+//;
$note =~ s/\s+$//;
$note =~ s%\n{2,}%\n</para>\n<para>\n%g;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]