Bok bok bok bug bug bug

TorgoX on 2002-10-26T22:45:17

Dear Log,

I spent two hours last night chasing misbehavior in my refurbished HTML::Formatter, because the code that I thought said this:

push @{$self->{'font_size'}},
  $self->{basefont_size}[-1] - 1;   # smaller
$self->DEBUG &&
  print "FS-stack: @{$self->{'font_size'}}.\n";
actually said this:
push @{$self->{'font_size'}},
  $self->{basefont_size}[-1] - 1,   # smaller
$self->DEBUG &&
  print "FS-stack: @{$self->{'font_size'}}.\n";

Meanwhile, I'm chasing an ab-initio bug in HTML::FormatPS now. Not too easy, since I don't know PS all that well, and am not totally at home with Gisle's style. I've found and solved a minute bug in leading, but not the bug I was actually looking for.


ouch!

gav on 2002-10-27T02:02:11

That's the kind of pesky bug that you can stare at until your eyes bleed and not notice. I had to actually do a 'diff' to notice.

I've sometimes found that if I have an errant block of code that I just can't get to work, if I delete it and type it in again from memory it magically works.