X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=funcsummary.php;h=4a7c1ddc6dc96a9bd926daad0fc3b4ac7cf3f134;hp=0a4e858c1bc7031d03a1940cc46b0bc0c99334a3;hb=b63e146a77c6512cae1574c0bb520b3a7bbec1e7;hpb=1f4974565dc58da9c7bfbde278896a5e06e9d669 diff --git a/funcsummary.php b/funcsummary.php index 0a4e858..4a7c1dd 100644 --- a/funcsummary.php +++ b/funcsummary.php @@ -14,9 +14,10 @@ function ff($t) { $t = preg_replace('/^ \* /m', '', trim($t, "*/ \n")); $t = preg_replace_callback('/(\<\?php.*?\?\>)/s', 'hl', $t); - $t = nl2br(preg_replace('/\n *\* */', "\n", $t)); + $t = str_replace("
\n
\n", "

\n

", nl2br(preg_replace('/\n *\* */', "\n", $t))); $t = preg_replace('/(\
\n)+\(\
\n)+/', '

', $t);
     $t = preg_replace('/(\
\n)+\<\/pre\>(\
\n)+/', '

', $t); + $t = str_replace("
\n", "", $t); return sprintf('

%s

', ltrim($t, ' *')); } function e($s)