From 0e5320dd93acc48d88221198a27297d62281ad34 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 5 May 2020 17:40:14 +0800 Subject: [PATCH] Update common.php --- common.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/common.php b/common.php index 9bcfbb6..cfb6372 100644 --- a/common.php +++ b/common.php @@ -2001,12 +2001,9 @@ function render_list($path = '', $files = '') // 最后清除换行 - while (strpos($html, ' - -')) $html = str_replace(' - -', ' -', $html); + while (strpos($html, "\r\n\r\n")) $html = str_replace("\r\n\r\n", "\r\n", $html); + //while (strpos($html, PHP_EOL.PHP_EOL)) $html = str_replace(PHP_EOL.PHP_EOL, PHP_EOL, $html); + } $html = $authinfo . $html;