diff --git a/lib/Module/Build/Base.pm b/lib/Module/Build/Base.pm index c12173be..6b25e3aa 100644 --- a/lib/Module/Build/Base.pm +++ b/lib/Module/Build/Base.pm @@ -3284,7 +3284,7 @@ sub htmlify_pods { my %opts = ( infile => $infile, outfile => $tmpfile, ( defined($podpath) ? (podpath => $podpath) : ()), - podroot => $podroot, + ( length($podroot) ? (podroot => $podroot) : ()), index => 1, depth => $depth, ); @@ -3306,7 +3306,7 @@ sub htmlify_pods { ( defined($podpath) ? "--podpath=$podpath" : ()), "--infile=$infile", "--outfile=$tmpfile", - "--podroot=$podroot", + ( length($podroot) ? "--podroot=$podroot" : ()), ($path2root ? "--htmlroot=$path2root" : ()), );