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
Last revisionBoth sides next revision
plugin:linebreak [2011-06-18 13:49] – changed external links to dokuwiki.org to internal links achplugin:linebreak [2016-08-04 15:56] – [Table] 111.196.237.122
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 208: Line 208:
      * 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 369:
 >>>>> 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 459:
 ====== temp =====  ====== temp ===== 
 </code> </code>
- 
plugin/linebreak.txt · Last modified: 2018-06-04 23:00 by Klap-in

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