[gtk-doc] mkdb: turn link targets into valid sgml ids, so that links actualy work



commit 36d333c4428a5a029dfdcade10677b5218551a0b
Author: Stefan Kost <ensonic users sf net>
Date:   Fri Nov 27 18:31:45 2009 +0200

    mkdb: turn link targets into valid sgml ids, so that links actualy work
    
    Thsi fixes links to struct members that contains '_'.

 gtkdoc-mkdb.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 88ad8f9..ee2abfe 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -1441,7 +1441,7 @@ sub OutputStruct {
     my @fields = ParseStructDeclaration($declaration, !$default_to_public,
 					0, \&MakeXRef,
 					sub {
-					    "<structfield id=\"$id.$_[0]\">$_[0]</structfield>";
+					    "<structfield id=\"".&CreateValidSGMLID("$id.$_[0]")."\">$_[0]</structfield>";
 					});
     my $params = $SymbolParams{$symbol};
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]