summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
207441d)
strip newlines from beginning of file also
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@68
07558da8-63fa-0310-ba24-
9fe276d99e06
return $iconv_loc->convert(chr(hex($t)));
}
$content =~ s/%u([a-fA-F0-9]{4})/_conv_js($1)/gex;
return $iconv_loc->convert(chr(hex($t)));
}
$content =~ s/%u([a-fA-F0-9]{4})/_conv_js($1)/gex;
+ $content =~ s/^[\n\r]+//s;
$content =~ s/[\n\r]+$//s;
write_file($path . '.new', $content) || die "can't save ${path}.new $!";
$content =~ s/[\n\r]+$//s;
write_file($path . '.new', $content) || die "can't save ${path}.new $!";