Skip Menu |

This queue is for tickets about the Apache-CVS CPAN distribution.

Report information
The Basics
Id: 1899
Status: resolved
Priority: 0/
Queue: Apache-CVS

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.06
  • 0.07
Fixed in: (no value)



Subject: bug in Apache::CVS::Revision sub content
This is pretty important. content does not return the file as it exists on disk. It adds an extra newline to each line, which is simply not the right thing to do. Here's a "fix": sub content { my $self = shift; $self->_checkout() unless $self->co_file(); return undef if $self->is_binary(); open FILE, $self->co_file(); # my $content = join "\n", <FILE>; my $content = join "", <FILE>; close FILE; return $content; } This was brought to my attention at http://perlmonks.com/index.pl?node_id=222936 Apache::CVS::HTML + Perl::Tidy by jeffa