[interchange-docs] xmldocs - docelic modified bin/refs-autogen
docs at icdevgroup.org
docs at icdevgroup.org
Sat Apr 26 17:33:34 UTC 2008
User: docelic
Date: 2008-04-26 17:33:34 GMT
Modified: bin refs-autogen
Log:
* Manually constructed see also pointers, such as &glos-tax; or
<ulink url="http://...."></ulink> now appear properly
expanded/generated in final document.
By now they were (unintentionally) silently dropped.
Revision Changes Path
1.127 xmldocs/bin/refs-autogen
rev 1.127, prev_rev 1.126
Index: refs-autogen
===================================================================
RCS file: /var/cvs/xmldocs/bin/refs-autogen,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -r1.126 -r1.127
--- refs-autogen 24 Apr 2008 15:41:04 -0000 1.126
+++ refs-autogen 26 Apr 2008 17:33:34 -0000 1.127
@@ -664,9 +664,14 @@
push @{$tmp{$_}}, $gr
}
}
+
+ # Handle manually written see also pointers, such as
+ # &glos-tax; or <ulink url=....>...</ulink>
+ @$list = grep {/^[<&]/} @$list;
+
# @$list will now contain only symbols that exist and can be
# linked to (rest is ignored)
- @$list =keys %tmp;
+ push @$list, keys %tmp;
# TODO this part of code still prevents linking to multiple
# types. If you link to 'time', which is a filter, widget and
@@ -679,6 +684,7 @@
# For each symbol and subtype we will link to, register bidirectional link.
for my $sym ( @$list ) {
+ goto RETURN_LINK_DONE if $sym =~ /^[<&]/;
for my $symgrp (@{$tmp{$sym}}) {
my $list2 = $autogenerated{$symgrp}{$sym}{'_see also'};
@@ -699,6 +705,7 @@
@{ $autogenerated{$symgrp}{$sym}{'_see also'} } = @$list2;
}
}
+ RETURN_LINK_DONE:
}
}
More information about the docs
mailing list