plugin:linebreak
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:linebreak [2009-10-10 23:38] – adjusted status tag ach | plugin:linebreak [2018-06-04 23:00] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== linebreak | + | ====== linebreak |
---- 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 | ||
similar | similar | ||
tags : typography, !experimental | tags : typography, !experimental | ||
+ | downloadurl: | ||
---- | ---- | ||
[[: | [[: | ||
- | ^ :!: | Packages updated to include functions missing from 2006-03-09 DokuWiki. | | + | **Use [[plugin: |
+ | Linebreak is a hack from the time before render plugins were possible.\\ | ||
+ | Its reported not to work (at least in some wikis) with the latest version of DokuWiki. | ||
+ | \\ | ||
+ | - [[http:// | ||
+ | (author of both xbr and linebreak plugins)** | ||
+ | |||
+ | |||
+ | ^ :!: | 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. |
This plugin maybe useful for wiki pages which include poetry, song lyrics or other content which is naturally written with meaningful single line breaks. | This plugin maybe useful for wiki pages which include poetry, song lyrics or other content which is naturally written with meaningful single line breaks. | ||
Line 31: | Line 40: | ||
===== Installation ===== | ===== Installation ===== | ||
+ | Search and install the plugin using the [[plugin: | ||
Plugin sources: | Plugin sources: | ||
Line 37: | Line 47: | ||
* for DokuWiki development version --- [[http:// | * for DokuWiki development version --- [[http:// | ||
- | If your wiki uses either the [[plugin: | ||
- | |||
- | To install the plugin manually, download the source to your plugin folder, '' | ||
- | |||
- | The folder will contain: | ||
- | syntax.php | ||
- | conf/ | ||
- | conf/ | ||
- | lang/ | ||
- | The plugin is now installed. | ||
===== Configuration ===== | ===== Configuration ===== | ||
Line 199: | Line 199: | ||
* plugin should use this method to register its handlers with the DokuWiki' | * plugin should use this method to register its handlers with the DokuWiki' | ||
*/ | */ | ||
- | function register(&$controller) { | + | function register(Doku_Event_Handler |
$controller-> | $controller-> | ||
$controller-> | $controller-> | ||
Line 346: | Line 346: | ||
>>>> | >>>> | ||
- | * After I updated DokuWiki from 2006-03 to 2006-11 (latest version), linebreak (version 2006-10-18) began to destroy my editing: | + | * After I updated DokuWiki from 2006-03 to 2006-11 (latest version), linebreak (version 2006-10-18) began to destroy my editing: |
> Yes. For now, you can either stick to using "Edit Page" rather than "edit section" | > Yes. For now, you can either stick to using "Edit Page" rather than "edit section" | ||
Line 360: | Line 360: | ||
>>>>> | >>>>> | ||
- | * Just installed this plug-in (from 2007-01-20), | + | * Just installed this plug-in (from 2007-01-20), |
* I've noticed that a line break doesn' | * I've noticed that a line break doesn' | ||
Line 377: | Line 377: | ||
- requiring a %%\\%% makes it more difficult to move text files into DokuWiki | - requiring a %%\\%% makes it more difficult to move text files into DokuWiki | ||
- the source text file looks ugly, cluttered, and unnatural | - the source text file looks ugly, cluttered, and unnatural | ||
- | - requiring an inviable | + | - requiring an invisible |
That said, the I don't know if integrating this plugin would be the best solution. In my experience, this plugin causing longer pages to not load. | That said, the I don't know if integrating this plugin would be the best solution. In my experience, this plugin causing longer pages to not load. | ||
Line 409: | Line 409: | ||
This broke several other plugins for me (code replacement 2, footnote, etc.). Additionally, | This broke several other plugins for me (code replacement 2, footnote, etc.). Additionally, | ||
---- | ---- | ||
- | Agree, because a plugin never gets the same support like the main code, and problems with updates, incompatibilities and other plugins are possible. And destruction of source text is a very bad effect. (i had problems with linebreak and had to deactivate it. i use now a patch witch change the main code, and had never problems anymore). 20-12-2007 | + | Agree, because a plugin never gets the same support like the main code, and problems with updates, incompatibilities and other plugins are possible. And destruction of source text is a very bad effect. (i had problems with linebreak and had to deactivate it. I use now a patch witch change the main code, and had never problems anymore). 20-12-2007 |
---- | ---- | ||
Agree, please include in main code -- GB 10-01-08 | Agree, please include in main code -- GB 10-01-08 | ||
Line 420: | Line 420: | ||
---- | ---- | ||
Another vote to include in the main code and/or make it a configuration setting. | Another vote to include in the main code and/or make it a configuration setting. | ||
+ | |||
+ | ---- | ||
+ | 11-09-10 | ||
+ | Linebreak plug-in was working very well until I installed the latest version. | ||
+ | |||
+ | Now when pressing ' | ||
+ | |||
+ | How can I bring into same effect as linebreak is on, NOT using \\ ? | ||
+ | |||
+ | example. | ||
+ | |||
+ | **Source** | ||
+ | < | ||
+ | ====== test ====== | ||
+ | |||
+ | Hello, world. | ||
+ | |||
+ | ====== temp ====== | ||
+ | </ | ||
+ | |||
+ | |||
+ | **clicking middle edit button** | ||
+ | < | ||
+ | |||
+ | == | ||
+ | |||
+ | Hello, world. | ||
+ | |||
+ | ====== temp ===== | ||
+ | </ |
plugin/linebreak.1255210690.txt.gz · Last modified: 2009-10-10 23:38 by ach