diff options
author | Chris Smith <chris.eureka@jalakai.co.uk> | 2008-03-09 21:11:16 +0100 |
---|---|---|
committer | Chris Smith <chris.eureka@jalakai.co.uk> | 2008-03-09 21:11:16 +0100 |
commit | a9c1d2d2263bdaacf49603f8d90f56e6948e48c7 (patch) | |
tree | 014dfb6e085b1decb98936b177e8d82756f60d1b /inc/parser/handler.php | |
parent | ada32d75817221b0570a12ffe885830dc7d19554 (diff) | |
download | rpg-a9c1d2d2263bdaacf49603f8d90f56e6948e48c7.tar.gz rpg-a9c1d2d2263bdaacf49603f8d90f56e6948e48c7.tar.bz2 |
Change handler to use a defined character for line-break replacement
This patch is the first in a series aimed at making it easier for DW to allow
plugins to modify the standard handling of line-breaks.
Currently the handler "eats" line-break characters replacing them with a space.
This patch changes the replacement character to a define, DOKU_PARSER_EOL and
updates all the test cases to use the new define.
DOKU_PARSER_EOL is left as a space.
darcs-hash:20080309201116-f07c6-21edb4f6955da8fa5ba0f9346d859a7c5c69a239.gz
Diffstat (limited to 'inc/parser/handler.php')
-rw-r--r-- | inc/parser/handler.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php index c016171b0..9011554bc 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -1,6 +1,8 @@ <?php if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/'); +if (!defined('DOKU_PARSER_EOL')) define('DOKU_PARSER_EOL'," "); // add this to make handling test cases simpler + class Doku_Handler { var $Renderer = NULL; @@ -1575,7 +1577,7 @@ class Doku_Handler_Block { }else{ //if this is just a single eol make a space from it - $this->calls[] = array('cdata',array(" "), $call[2]); + $this->calls[] = array('cdata',array(DOKU_PARSER_EOL), $call[2]); } } |