mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: auto convert \r\n
This commit is contained in:
1 parent
56aafde4a8
commit
77b08c9e7c
2 files changed
+2
-2
No files matched your search
@@ -194,7 +194,7 @@ const page = new NamedPage('problem_files', () => {
|
||||
model: `hydro://problem/file/${filename}`,
|
||||
});
|
||||
const action = await promise;
|
||||
value = editor.value();
|
||||
value = editor.value().replace(/\r\n/g, '\n');
|
||||
editor.destory();
|
||||
if (action !== 'ok') return null;
|
||||
return value;
|
||||
|
||||
Reference in new issue
Block a user