From: Brion Vibber Date: Mon, 22 Dec 2003 08:03:21 +0000 (+0000) Subject: Trim whitespace on TOC links X-Git-Tag: 1.3.0beta1~1218 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=2e6a6b3c88164ae29aefeedc58b52be03ae65623;p=lhc%2Fweb%2Fwiklou.git Trim whitespace on TOC links --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index dacae9ab55..86038f56bf 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1438,7 +1438,7 @@ $t[] = "" ; // The canonized header is a version of the header text safe to use for links $canonized_headline=preg_replace("/<.*?>/","",$headline); // strip out HTML - $tocline=$canonized_headline; + $tocline = trim( $canonized_headline ); $canonized_headline=str_replace('"',"",$canonized_headline); $canonized_headline=str_replace(" ","_",trim($canonized_headline)); $refer[$c]=$canonized_headline;