Skip to content

Commit a418cbd

Browse files
committedFeb 25, 2012
Fix line ending processing by Build.
1 parent 8fad376 commit a418cbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/WGDev/Command/Build.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ sub write_db_structure {
129129
if ( !$statement && $line =~ /\A(CREATE[ ]TABLE)/msx ) {
130130
$statement = $1;
131131
}
132-
if ( $statement && $line =~ /;\z/msx ) {
132+
if ( $statement && $line =~ /;\n?\z/msx ) {
133133
if ( $statement eq 'CREATE TABLE' ) {
134-
$line =~ s/;\z/ CHARSET=utf8;/msx;
134+
$line =~ s/;(\n?)\z/ CHARSET=utf8;$1/msx;
135135
}
136136
undef $statement;
137137
}

0 commit comments

Comments
 (0)
Please sign in to comment.