Altrough maybe it's not the world's better implementation, this makes possibe 
to post patches in comments, as you can see here:

http://imgur.com/kY0EF

Regards.
From ae01be86ee5844bd67a7e48b857fd75378d9d56d Mon Sep 17 00:00:00 2001
From: Manuel Tortosa <manutort...@gmail.com>
Date: Wed, 29 Sep 2010 17:09:56 +0200
Subject: [PATCH 7/7] Make possible to post patches in comments

---
 web/template/pkg_comments.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index 4f7560a..84b9474 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -24,7 +24,7 @@ while (list($indx, $carr) = each($comments)) { ?>
 ?></div>
 	<blockquote class="comment-body">
 	<div>
-<?php echo nl2br(htmlspecialchars($carr['Comments'])) ?>
+<?php echo str_replace("  ", " &nbsp;", nl2br(htmlspecialchars($carr['Comments']))) ?>
 	</div>
 	</blockquote>
 <?php
-- 
1.7.1

Reply via email to