Author: mcbrown
Date: 2007-03-13 16:34:10 +0100 (Tue, 13 Mar 2007)
New Revision: 5333
Log:
Adding a warning for bad titles in <xref> not <link> entries
Modified:
trunk/tools/idremap.pl
Modified: trunk/tools/idremap.pl
===================================================================
--- trunk/tools/idremap.pl 2007-03-13 15:26:57 UTC (rev 5332)
+++ trunk/tools/idremap.pl 2007-03-13 15:34:10 UTC (rev 5333)
Changed blocks: 1, Lines Added: 7, Lines Deleted: 2; 1626 bytes
@@ -122,16 +122,21 @@
}
if (exists($missing->{$idref}))
{
+ if (length($idmap->{$idref}->{title}) == 0)
+ {
+ print STDERR "Warning: Link text would be blank (???) because title text
for $idref is not defined\n";
+ }
+
if ($idmap->{$idref}->{type} =~
m/^(appendix|article|book|part|chapter|example|glossary|preface|refentry|refsection|section)$/i)
{
- print STDERR "Replacing $idref with URL/$idref.html
[$idmap->{$idref}->{title}](direct)\n"
+ print STDERR "Replacing $idref with
$urlcore/$idmap->{$idref}->{urlbase}/$idref.html
[$idmap->{$idref}->{title}](direct)\n"
if ($warnings);
$url =
sprintf('%s%s/%s.html',$urlcore,$idmap->{$idref}->{urlbase},$idref);
$title = $idmap->{$idref}->{title} || $idref;
}
else
{
- print STDERR "Replacing $idref with
URL/$idmap->{$idref}->{parent}.html (parent)\n"
+ print STDERR "Replacing $idref with
$urlcore/$idmap->{$idref->{parent}}->{urlbase}/$idmap->{$idref}->{parent}.html
(parent)\n"
if ($warnings);
$url =
sprintf('%s%s/%s.html#%s',$urlcore,$idmap->{$idref}->{parent},$idmap->{$idref}->{urlbase},$idref);
$title = $idmap->{$idmap->{$idref}->{parent}}->{title} ||
$idref;
| Thread |
|---|
| • svn commit - mysqldoc@docsrva: r5333 - trunk/tools | mcbrown | 13 Mar |