From: x2003bruneau Date: Sat, 4 Mar 2006 11:10:38 +0000 (+0000) Subject: =?utf-8?q?Bon=20en=20fait=20skinnage=20des=20blockquote=20par=20la=20CSS X-Git-Tag: 1.8~268 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4c1df590a58a399b00347c562caf4329fc4a9ee6;p=banana.git =?utf-8?q?Bon=20en=20fait=20skinnage=20des=20blockquote=20par=20la=20CSS =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 --- 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; }