JessicaTegner / pypandoc

Thin wrapper for "pandoc" (MIT)
http://pypi.python.org/pypi/pypandoc/
Other
843 stars 108 forks source link

fix: shell path error #347

Open CplusHua opened 9 months ago

CplusHua commented 9 months ago

文件名中包含[时,如:XXX[123].XXX.docx,在MacOS中执行报错如下: python3.10/site-packages/pypandoc/init.py", line 164, in convert_file format = _identify_format_from_path(discovered_source_files[0], format) IndexError: list index out of range

修复:将[改为[[

JessicaTegner commented 9 months ago

It's not obvious what this pr actually does