diff cgi-bin/comments.cgi @ 123:412506c2de6b

Attempt to recognise paragraphs.
author Steve Kemp <steve@steve.org.uk>
date Thu, 13 Dec 2007 21:32:24 +0000
parents a25099606ec5
children 4a882ba147e4
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.
 #
 #