File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 4646
4747Welcome 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).
5151The input is itself a presentable, easily-editable file designed
5252mostly for the editor’s convenenience.
5353
126126 $outFile =~ s /\. $1/ \. html/ ;
127127}
128128elsif ($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+
135134open IN, " <" , $inFile || die " Cannot open $inFile : $! " ;
136135open OUT, " >" , $outFile || die " Cannot open $outFile : $! " ;
137136$/ = " ----\n " ;
You can’t perform that action at this time.
0 commit comments