mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-10-30 12:50:18 +08:00
utf8 in pastebin fixed
This commit is contained in:
1 parent
b8b7fe4337
commit
c91c9cec9c
1 file changed
+1
-1
+1
-1
@@ -33,5 +33,5 @@ for sect in sections[2:][:-1]:
|
||||
else:
|
||||
title=story[:30]
|
||||
title=filename(title)+'.txt'
|
||||
with Path('prompts', category, title).open('w') as f:
|
||||
with Path('prompts', category, title).open('w', encoding='UTF-8') as f:
|
||||
f.write(re.sub(r'^\([^\)]+\)\n', '', story))
|
||||
Reference in new issue
Block a user