OSDN Git Service

BugTrack/786, BugTrack/583: Merged '&br;' rule into br plugin. Br tags should not...
authorhenoheno <henoheno>
Sat, 19 Mar 2005 01:26:53 +0000 (10:26 +0900)
committerhenoheno <henoheno>
Sat, 19 Mar 2005 01:26:53 +0000 (10:26 +0900)
default.ini.php
keitai.ini.php
plugin/br.inc.php

index 65c9096..2b41920 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: default.ini.php,v 1.16 2004/12/24 15:30:29 henoheno Exp $
+// $Id: default.ini.php,v 1.17 2005/03/19 01:26:53 henoheno Exp $
 //
 // PukiWiki setting file (user agent:default)
 
@@ -100,7 +100,6 @@ $line_rules = array(
        '%%(?!%)((?:(?!%%).)*)%%'       => '<del>$1</del>',
        "'''(?!')((?:(?!''').)*)'''"    => '<em>$1</em>',
        "''(?!')((?:(?!'').)*)''"       => '<strong>$1</strong>',
-       '&amp;br;'      => '<br />',
 );
 
 /////////////////////////////////////////////////
index 5eeebb1..0943757 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: keitai.ini.php,v 1.17 2004/10/31 02:01:38 henoheno Exp $
+// $Id: keitai.ini.php,v 1.18 2005/03/19 01:26:53 henoheno Exp $
 //
 // PukiWiki setting file (Cell phones, PDAs and other thin clients)
 
@@ -169,7 +169,6 @@ $line_rules = array(
        '%%(?!%)((?:(?!%%).)*)%%'       => '<del>$1</del>',
        "'''(?!')((?:(?!''').)*)'''"    => '<em>$1</em>',
        "''(?!')((?:(?!'').)*)''"       => '<strong>$1</strong>',
-       '&amp;br;'      => '<br>',
 );
 
 
index 15cb933..cd82244 100644 (file)
@@ -1,11 +1,27 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone
-// $Id: br.inc.php,v 1.3 2005/01/22 03:31:49 henoheno Exp $
+// $Id: br.inc.php,v 1.4 2005/03/19 01:26:53 henoheno Exp $
 //
 // Forcing a line break plugin
 
+// Escape using <br> in <blockquote> (BugTrack/583)
+define('PLUGIN_BR_ESCAPE_BLOCKQUOTE', 1);
+
+// ----
+
+define('PLUGIN_BR_TAG', '<br class="spacer" />');
+
 function plugin_br_convert()
 {
-       return '<br class="spacer" />';
+       if (PLUGIN_BR_ESCAPE_BLOCKQUOTE) {
+               return '<div class="spacer">&nbsp;</div>';
+       } else {
+               return PLUGIN_BR_TAG;
+       }
+}
+
+function plugin_br_inline()
+{
+       return PLUGIN_BR_TAG;
 }
 ?>