mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
judge: fix CR trim
This commit is contained in:
1 file changed
+1
@@ -60,6 +60,7 @@ const compareSh = `#!/bin/bash
|
||||
set -e
|
||||
process_file() {
|
||||
cat $1 | awk '
|
||||
{sub(/\\r+$/,"")}
|
||||
/^$/{n=n RS};
|
||||
/./{
|
||||
printf "%s",n; n="";
|
||||
|
||||
Reference in new issue
Block a user