Skip to content

Commit bb88100

Browse files
committed
Update issuegen to handle bsi
1 parent f61c325 commit bb88100

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

bin/issuegen.pl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
4747
Welcome to fantasai's Issues List Generator!
4848
49-
This is a script that converts a plaintext (.txt) issues list into a
50-
color-coded HTML file of the same name (but .html file extension).
49+
This is a script that converts a plaintext (.txt or .bsi) issues list
50+
into a color-coded HTML file of the same name (but .html file extension).
5151
The input is itself a presentable, easily-editable file designed
5252
mostly for the editor’s convenenience.
5353
@@ -126,12 +126,11 @@
126126
$outFile =~ s/\.$1/\.html/;
127127
}
128128
elsif ($inFile =~ /\.$/) { # tab completion case
129-
$inFile .= 'txt';
129+
$inFile .= 'txt' if (-e ($inFile . "txt"));
130+
$inFile .= 'bsi' if (-e ($inFile . "bsi"));
130131
$outFile .= 'html';
131132
}
132-
else {
133-
$inFile .= '.html';
134-
}
133+
135134
open IN, "<", $inFile || die "Cannot open $inFile: $!";
136135
open OUT, ">", $outFile || die "Cannot open $outFile: $!";
137136
$/ = "----\n";

0 commit comments

Comments
 (0)