From 4c1df590a58a399b00347c562caf4329fc4a9ee6 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sat, 4 Mar 2006 11:10:38 +0000 Subject: [PATCH] =?utf8?q?=3D=3Futf-8=3Fq=3FBon=3D20en=3D20fait=3D20skinna?= =?utf8?q?ge=3D20des=3D20blockquote=3D20par=3D20la=3D20CSS?= =20Avec=20possibilit=C3=83=C2=A9=20de=20skinnage=20en=20fonction=20de=20la=20profondeur=20de=20la=20citation?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@27 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- banana/misc.inc.php | 11 +++++------ css/style.css | 9 +++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/banana/misc.inc.php b/banana/misc.inc.php index c5b6b32..27cb940 100644 --- a/banana/misc.inc.php +++ b/banana/misc.inc.php @@ -323,13 +323,12 @@ function formatbody($_text, $format='plain') $res = preg_replace("@]*>\n?-- \n?(]*>)@", "
--
\\2", $res); $parts = preg_split("@(:?]*>\n?-- \n?

|]*>\n?-- \n?]*>)@", $res); } else { - $i=0; - while (preg_match("@(^|
|\n)>@i", $res)) {
+        for ($i = 1 ; preg_match("@(^|
|\n)>@i", $res) ; $i++) {
             $res  = preg_replace("@(^|
|\n)((>[^\n]*\n)+)@ie",
-            	"'\\1
'"
-		    .".stripslashes(preg_replace('@(^|
|\n)>[ \\t\\r]*@i', '\\1', '\\2'))"
-		    .".'
'",
-	        $res);
+                "'\\1
'"
+    		    .".stripslashes(preg_replace('@(^|
|\n)>[ \\t\\r]*@i', '\\1', '\\2'))"
+	    	    .".'
'",
+	            $res);
         }
 	$res = preg_replace("@
-- ?\n@", "
\n-- \n", $res);
         $parts = preg_split("/\n-- ?\n/", $res);
diff --git a/css/style.css b/css/style.css
index fe1d341..64f43f5 100644
--- a/css/style.css
+++ b/css/style.css
@@ -35,6 +35,15 @@ table.banana_msg .hdr { width: 15%; text-align: right; font-weight: bold; paddin
 table.banana_msg td.thrd { padding: 0px; }
 table.banana_msg table { border: 0px; padding: 0px; margin: 0px; width: 100%; }
 
+table.banana_msg blockquote {
+        color: green;
+        font-style: italic;
+        margin-left: 0;
+        padding-left: 1em;
+        border-left: solid 1px;
+        border-color: blue;
+}
+
 /** MISC **/
 
 div.center { text-align: center; padding: 1em; }
-- 
2.1.4