DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:linebreak

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:linebreak [2011-06-18 13:49] – changed external links to dokuwiki.org to internal links achplugin:linebreak [2018-06-04 23:00] (current) Klap-in
Line 1: Line 1:
-====== linebreak plugin ======+====== linebreak Plugin ======
  
 ---- plugin ---- ---- plugin ----
Line 7: Line 7:
 type       : syntax, action type       : syntax, action
 lastupdate : 2007-01-20 lastupdate : 2007-01-20
-compatible :+compatible : Weatherwax
 depends    : depends    :
 conflicts  : conflicts  :
Line 25: Line 25:
  
  
-^ :!: | Packages updated to include functions missing from 2006-03-09 DokuWiki. |+^ :!:  | Packages updated to include functions missing from 2006-03-09 DokuWiki.  |
  
 This [[:plugin]] changes the way DokuWiki treats single line break in the raw wiki text - instead of the default behaviour, where the line break is absorbed, it will generate a line break in the HTML output. This [[:plugin]] changes the way DokuWiki treats single line break in the raw wiki text - instead of the default behaviour, where the line break is absorbed, it will generate a line break in the HTML output.
Line 40: Line 40:
  
 ===== Installation ===== ===== Installation =====
 +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 Plugin sources:  Plugin sources: 
Line 46: Line 47:
   * for DokuWiki development version --- [[http://wiki.jalakai.co.uk/repo/dokuwiki/plugins/linebreak|darcs]]   * for DokuWiki development version --- [[http://wiki.jalakai.co.uk/repo/dokuwiki/plugins/linebreak|darcs]]
  
-If your wiki uses either the [[plugin:plugin]] manager or the [[plugin:darcs|darcs plugin]] you can use them with the appropriate links above to install the plugin.     
  
-To install the plugin manually, download the source to your plugin folder, ''lib/plugins'', and extract its contents.  That will create a new plugin folder, ''lib/plugins/linebreak'', and install the plugin. 
- 
-The folder will contain: 
-  syntax.php                            ; plugin script 
-  conf/default.php                      ; default configuration setting values 
-  conf/metadata.php                     ; information for the configuration settings page 
-  lang/xx/settings.php                  ; language strings for configuration settings page 
- 
-The plugin is now installed. 
  
 ===== Configuration ===== ===== Configuration =====
Line 208: Line 199:
      * plugin should use this method to register its handlers with the DokuWiki's event controller      * plugin should use this method to register its handlers with the DokuWiki's event controller
      */      */
-    function register(&$controller) {+    function register(Doku_Event_Handler $controller) {
       $controller->register_hook('PARSER_WIKITEXT_PREPROCESS', 'BEFORE',  $this, '_addspaces', NULL);       $controller->register_hook('PARSER_WIKITEXT_PREPROCESS', 'BEFORE',  $this, '_addspaces', NULL);
       $controller->register_hook('PARSER_HANDLER_DONE','BEFORE', $this, '_fixsecedit', NULL);       $controller->register_hook('PARSER_HANDLER_DONE','BEFORE', $this, '_fixsecedit', NULL);
Line 369: Line 360:
 >>>>> Ok. Thanks for clarifying this. I'm happy with it as it is. --- //[[emodul@gmx.net|eModul]] 2007-02-28 20:01// >>>>> Ok. Thanks for clarifying this. I'm happy with it as it is. --- //[[emodul@gmx.net|eModul]] 2007-02-28 20:01//
  
-  * Just installed this plug-in (from 2007-01-20), and it breaks the [[doku>plugin:deflist|deflist]] plug-in for me. Proposals?+  * Just installed this plug-in (from 2007-01-20), and it breaks the [[plugin:deflist|deflist]] plug-in for me. Proposals?
   * I've noticed that a line break doesn't appear immediately after an unordered list even if I leave a blank line between the list and the following text. It does appear if I put a space on the blank line, though.   * I've noticed that a line break doesn't appear immediately after an unordered list even if I leave a blank line between the list and the following text. It does appear if I put a space on the blank line, though.
  
Line 459: Line 450:
 ====== temp =====  ====== temp ===== 
 </code> </code>
- 
plugin/linebreak.1308397751.txt.gz · Last modified: 2011-06-18 13:49 by ach

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki