On Apr 19, 2010, at 12:06 PM, Kevin Ryde via RT wrote:
Show quoted text> Pod::Simple::HTMLBatch 3.13 generates a stylesheet line
>
> <link rel="alternate stylesheet" title="blkbluw " type="text/css" href="blkbluw_.css" media="all" >
>
> apparently using file "blkbluw_.css", but the file it creates in the
> output directory is called "_blkbluw.css". I wonder if one of them has
> the _ at the wrong end.
Hrm. Looks like I changed it from _blkbluw.css to blkbluw_.css in
http://github.com/theory/pod-simple/commit/ebf9054d9dd4411412ba4da8ce559e06afad93e0. I don't recall why. Does this patch fix it?
--- a/lib/Pod/Simple/HTMLBatch.pm
+++ b/lib/Pod/Simple/HTMLBatch.pm
@@ -726,7 +726,7 @@ sub _gen_css_wad {
'whtgrng', # white_with_green_on_grey
'grygrnw', # grey_with_green_on_white
) {
- my $outname = "$variation\_";
+ my $outname = $variation;
my $this_css = join "\n",
"/* This file is autogenerated. Do not edit. $outname */\n",
"\@import url(\"./_$variation.css\");",
@@ -735,7 +735,7 @@ sub _gen_css_wad {
;
my $name = $outname;
$name =~ tr/-_/ /;
- $self->add_css( "$outname.css", 0, $name, 0, 0, \$this_css);
+ $self->add_css( "_$outname.css", 0, $name, 0, 0, \$this_css);
}
return;
Best,
David