修复 bug

This commit is contained in:
William Jin 2024-09-22 21:31:06 +08:00
parent e976b4575f
commit fa11d92400

View File

@ -139,7 +139,7 @@ def power_shell_pdf_download(powershell_script):
powershell_script = re.sub(r'\s*"range"="[^"]*"\s*', '\n ', powershell_script)
# 在脚本最后加上 "-OutFile 1.pdf"
powershell_script = powershell_script.strip() + '\n-OutFile 1.pdf'
powershell_script = powershell_script.strip() + ' -OutFile 1.pdf'
return powershell_script
with gr.Blocks() as iface: