1
0
mirror of https://github.com/php/web-php.git synced 2026-03-28 17:22:06 +01:00

replace double-newline with paragraph break (but not just nl2br, which would be too funky), and repeat url at end of entry like it did before.

This commit is contained in:
jim winstead
2002-03-06 00:32:11 +00:00
parent 721618f7f5
commit bce09dfa7e

View File

@@ -427,7 +427,7 @@ function display_event($event,$include_date=1)
}
?>
</td></tr>
<tr bgcolor="#eeeeee"><td><?php echo $event['ldesc']?></td></tr>
<tr bgcolor="#eeeeee"><td><?php echo preg_replace("/\r?\n\r?\n/","<br /><br />",trim($event['ldesc'])); if ($event['url']) {?><br /><br /><b>URL:</b> <?php echo '<a href="',htmlentities($event['url']),'">',htmlentities($event['url']),'</a>'; }?></td></tr>
</table>
<?php
}