mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
utf8 in pastebin fixed
This commit is contained in:
+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