From 4e6d86b89d4b16cf3d599b20fc54138ce10da38e Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 29 Sep 2022 11:03:51 +0800 Subject: [PATCH] fix: submission content padding --- web/app/libs/uoj-html-lib.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/web/app/libs/uoj-html-lib.php b/web/app/libs/uoj-html-lib.php index 6258c62..84f260a 100644 --- a/web/app/libs/uoj-html-lib.php +++ b/web/app/libs/uoj-html-lib.php @@ -535,7 +535,7 @@ function echoSubmissionContent($submission, $requirement) { echo '
'; echo '
'.$file_content."\n".'
'; echo '
'; @@ -551,7 +551,11 @@ function echoSubmissionContent($submission, $requirement) { echo '

'.$req['file_name'].'

'; echo ''; echo '
'; - echo '
'."\n".$file_content."\n".'
'; + echo '
\n".$file_content."\n".'
'; echo '
'; echo ''; echo ''; @@ -582,7 +586,11 @@ class JudgementDetailsPrinter { global $REQUIRE_LIB; if ($node->nodeName == 'error') { - echo "
\n";
+			echo '
\n";
 			$this->_print_c($node);
 			echo "\n
"; } elseif ($node->nodeName == 'tests') {