[Dbix-class] new lines of make_schema_at

Brandon Black blblack at gmail.com
Wed Oct 3 11:19:46 GMT 2007


On 10/3/07, Fayland Lam <fayland at gmail.com> wrote:

> every time I ran the pl, there will be a new line \n between
>
> # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rG4bblRQbEwYm7daujAJuw
>
>
> # You can replace this text with custom content, and it will be
> preserved on regeneration
>
> like: before is 2 new lines \n between them, but after is 3 new lines \n.
>
> I find in DBIx::Class::Schema::Loader::Base
>
> line 490: print $fh $text . Digest::MD5::md5_base64($text) . "\n\n"; add
> a new line
> and sub _get_custom_content get all lines under "DO NOT MODIFY THIS OR
> ANYTHING ABOVE! md5sum"
>
> so every time it will add an extra new line.
>
> is it designed by default?
>

No, it's a bug.  IIRC, ilmari fixed this in trunk a month or two ago,
I just haven't pushed out a release since then.  I'll see if I can't
convince myself to push it up to CPAN :)

-- Brandon



More information about the DBIx-Class mailing list