forked from rho_n/hpr_generator
Skip padding when id is empty string
This commit is contained in:
parent
de58d9dc61
commit
33d98904e2
@ -303,7 +303,7 @@ sub get_filename {
|
||||
else {
|
||||
$filename = $$config{'filename'};
|
||||
my $padded_index = "";
|
||||
if (exists $$config{'id'}) {
|
||||
if (exists $$config{'id'} && $$config{'id'} ne "") {
|
||||
$padded_index = sprintf("%04d", $$config{'id'});
|
||||
}
|
||||
$filename =~ s/\[id\]/$padded_index/;
|
||||
|
Loading…
Reference in New Issue
Block a user