From 95195155206a8cbfa0f9b73ec1f2333ceb8dc95f Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Mon, 14 May 2001 07:26:08 +0000 Subject: [PATCH] - Removed the <PRE></PRE>-tags from cvs.module to make the CVS log messages wrap nicely on all browsers. (requested by Steven) --- modules/cvs.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cvs.module b/modules/cvs.module index 71e7b5ce4a80..8aaf65b0895e 100644 --- a/modules/cvs.module +++ b/modules/cvs.module @@ -25,11 +25,11 @@ function cvs_page() { $output .= "<b>File:</b> $cvs->files<br />"; $output .= "<b>Date:</b> ". format_date($cvs->timestamp) ."<br />"; $output .= "<b>User:</b> $cvs->user<br />"; - $output .= "\n". htmlentities($cvs->message) ."<hr />"; + $output .= "\n". nl2br(htmlentities($cvs->message)) ."<hr />"; } $theme->header(); - $theme->box("CVS commit messages", "<pre>$output</pre>"); + $theme->box("CVS commit messages", "<div style=\"font-family: monospace;\">$output</div>"); $theme->footer(); } -- GitLab