From a9c1d2d2263bdaacf49603f8d90f56e6948e48c7 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 9 Mar 2008 21:11:16 +0100 Subject: 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 --- inc/parser/handler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc/parser') 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 @@ calls[] = array('cdata',array(" "), $call[2]); + $this->calls[] = array('cdata',array(DOKU_PARSER_EOL), $call[2]); } } -- cgit v1.2.3