develooper Front page | perl.perl5.porters | Postings from July 2012

[perl #114318] '--splithead' option to 'installhtml' creates incorrect links

Thread Next
From:
James E Keenan via RT
Date:
July 30, 2012 17:49
Subject:
[perl #114318] '--splithead' option to 'installhtml' creates incorrect links
Message ID:
rt-3.6.HEAD-11172-1343695782-263.114318-15-0@perl.org
Clarification of one point:

> [snip]

> When I call:
> 
> #####
> installhtml \
>    --podroot=./xt \
>    --podpath=split \
>    --splithead=split/splithead1.pod,split/splithead2.pod \
>    --htmldir=./tmphtml \
>    --recurse
> #####
> 
> ... I end up with these .html files:
> 
> #####
> tmphtml/split/splithead1/feature_a.html
> tmphtml/split/splithead1/feature_b.html
> tmphtml/split/splithead1.html
> tmphtml/split/splithead2/feature_c.html
> tmphtml/split/splithead2/feature_d.html
> tmphtml/split/splithead2.html
> #####
> 
> Note that in the source code .pod files, the values for the =head1
> entries are *Initial Caps*.  The files that get created however, are
> named *all_lower_case*, with underscores substituting for spacebands.
> 
> In the generated .html files however, the links tend to be composed as
> expecting Initial Caps.  For example, in
>    tmphtml/split/splithead1.html,
> I get:
> 
> #####
>   <ul id="index">
>    <li><a href="../../splithead1/Feature-A.html">Feature A</a></li>
>    <li><a href="../../splithead1/Feature-B.html">Feature B</a></li>
> </ul>
> #####
> 

The problem with the basename in the link is not that the "Feature-A" is
Initial Caps; the link is case-insensitive.  The problem is that we get
a hyphen rather than an underscore.  We need "Feature_A" or "feature_a",
but not "Feature-A".

jimk

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=114318

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About