changeset 123:412506c2de6b

Attempt to recognise paragraphs.
author Steve Kemp <steve@steve.org.uk>
date Thu, 13 Dec 2007 21:32:24 +0000
parents 41f58318152c
children 542db30ec219
files cgi-bin/comments.cgi
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cgi-bin/comments.cgi	Thu Dec 13 20:48:16 2007 +0000
+++ b/cgi-bin/comments.cgi	Thu Dec 13 21:32:24 2007 +0000
@@ -88,6 +88,11 @@
 
 
 #
+#  Convert the message to crude HTML.
+#
+$body =~ s/\n$/<br>\n/mg;
+
+#
 #  Otherwise save them away.
 #
 #