OSDN Git Service

BugTrack/684 Don't show MenuBar right after unfreezing a page
[pukiwiki/pukiwiki.git] / plugin / br.inc.php
1 <?php
2 // PukiWiki - Yet another WikiWikiWeb clone
3 // $Id: br.inc.php,v 1.5 2007/04/08 10:22:18 henoheno Exp $
4 // Copyright (C) 2003-2005, 2007 PukiWiki Developers Team
5 // License: GPL v2 or (at your option) any later version
6 //
7 // "Forcing one line-break" plugin
8
9 // Escape using <br /> in <blockquote> (BugTrack/583)
10 define('PLUGIN_BR_ESCAPE_BLOCKQUOTE', 1);
11
12 // ----
13
14 define('PLUGIN_BR_TAG', '<br class="spacer" />');
15
16 function plugin_br_convert()
17 {
18         if (PLUGIN_BR_ESCAPE_BLOCKQUOTE) {
19                 return '<div class="spacer">&nbsp;</div>';
20         } else {
21                 return PLUGIN_BR_TAG;
22         }
23 }
24
25 function plugin_br_inline()
26 {
27         return PLUGIN_BR_TAG;
28 }
29 ?>