Html issue with Module::Build (Win32 ActiveState Perl)

D

Dilbert

I have an issue with the Html that is generated with Module::Build. I
am using Win32 ActiveState Perl 5.10.1.

To install new modules from CPAN, I used to do ExtUtils::MakeMaker /
perl Makefile.PL / nmake / nmake test / nmake install. ==> everything
works fine and the new Html documentation integrates seamlessly into
the existing documentation.

Now I want to use Module::Build to install modules, so I do perl
Build.PL / Build / Build test / Build install. ==> the module itself
installs ok, but the Html is created differently. In fact the header
in the Html file with Module::Build is much smaller than it is in the
Html file with ExtUtils::MakeMaker.

How can I configure Module::Build to produce Html that is *identical*
to what is produced by MakeMaker ?

Here is the diff between the Html files produced by
ExtUtils::MakeMaker and by Module::Build
(the "DTD HTML 4.0 Transitional" is created by ExtUtils::MakeMaker
and the "DTD XHTML 1.0 Strict" is created by Module::Build)

==================

2,3c2,3
< <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
5,10c5
< <!-- saved from url=(0017)http://localhost/ -->
< <script language="JavaScript" src="../../../displayToc.js"></script>
< <script language="JavaScript" src="../../../tocParas.js"></script>
< <script language="JavaScript" src="../../../tocTab.js"></script>
< <link rel="stylesheet" type="text/css" href="../../../
scineplex.css">
<title>MyTest::program</title> 16a12,16
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr><td class="block" valign="middle">
<big><strong><span class="block">&nbsp;MyTest::program</span></strong></big>
</td></tr>
</table>
21,22d20
< <script>writelinks('__top__',3);</script>
 
D

Dilbert

I have an issue with the Html that is generated with Module::Build. I
am using Win32 ActiveState Perl 5.10.1.

After some investigation, I found the following code in
http://cpansearch.perl.org/src/DAGOLDEN/Module-Build-0.35/lib/Module/Build/Base.pm
==============
{
my $Is_ActivePerl = eval {require ActivePerl::DocTools};
__PACKAGE__->add_property(html_css => $Is_ActivePerl ?
'Active.css' : '');
}
==============

Knowing that "ActivePerl::DocTools" does *not* exist in ActiveState
Perl, *** only "ActivePerl::DocTools::pod" does ***, would that code
not better be written as:

==============
{
my $Is_ActivePerl = eval {require ActivePerl::DocTools::pod}; # <<==
*** note the "::pod" ***
__PACKAGE__->add_property(html_css => $Is_ActivePerl ?
'Active.css' : '');
}
==============
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,787
Messages
2,569,630
Members
45,334
Latest member
66Zeinab9

Latest Threads

Top