Inconsistent output file naming
Perl based utility to extract formatted text content from MS Docx file
Brought to you by:
idiotkid
By default, docx2txt chooses a different output filename depending on the case of the input extension.
If the input is filename.docx the output will be filename.txt
If the input is filename.DOCX the output will be filename.DOCX.txt
This can cause unexpected problems when docx2txt is used by a website that usually handles files with lower case extensions (it just created problems for http://acromatic.uk).
Hi Dan,
Please update line 421 from
$ARGV[1] .= ".txt" if !($ARGV[1] =~ s/.docx$/.txt/);
to
$ARGV[1] .= ".txt" if !($ARGV[1] =~ s/.docx$/.txt/i);
to fix the issue.
Regards
IK
Thanks!