Cleaner changelog
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 7 Oct 2007 13:55:41 +0000 (15:55 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 7 Oct 2007 13:55:41 +0000 (15:55 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/platal.php
templates/platal/changeLog.tpl

index 7b76ae3..0824f2b 100644 (file)
@@ -100,6 +100,7 @@ class PlatalModule extends PLModule
           $clog);
         $clog = preg_replace('!(#[0-9]+(,[0-9]+)*)!e', 'bugize("\1")', $clog);
         $clog = preg_replace('!vim:.*$!', '', $clog);
+        $clog = preg_replace("!(<hr />(\\s|\n)*)?<pre>(\s|\n)*</pre>((\\s|\n)*<hr />)?!m", "", "<pre>$clog</pre>");
         $page->assign('ChangeLog', $clog);
     }
 
index 437db01..67008f6 100644 (file)
@@ -21,7 +21,5 @@
 {**************************************************************************}
 <h1>ChangeLog</h1>
 <p>Voici la liste des modifications faites sur <a href="http://opensource.polytechnique.org/platal/">plat/al</a>, le support libre de ce site.</p>
-<pre>
 {$ChangeLog|smarty:nodefaults}
-</pre>
 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}