From 52fe2bfb49cad82b7f887b3dfa327f898720c4cd Mon Sep 17 00:00:00 2001 From: Chris Smith <chris.eureka@jalakai.co.uk> Date: Wed, 12 Mar 2008 01:09:24 +0100 Subject: [PATCH] change line-break replacement character to '\n' This patch is the third in a series aimed at making it easier for DW to allow plugins to modify the standard handling of line-breaks. It effectively leaves the new-line character '\n' in the 'cdata' instruction allowing the renderer to process the character as it chooses. No changes have been made to the renderers. This change is neutral to xhtml renderers as xhtml treats spaces and new-lines identically (as white-space). Writers of renderer plugins are advised to check their plugin against the new patch. darcs-hash:20080312000924-f07c6-a6dab2d16c7bc42e9dc8eb137648c6f984b4f2e6.gz --- inc/parser/handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 61c143bae..9f158e4a8 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -1,7 +1,7 @@ <?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 +if (!defined('DOKU_PARSER_EOL')) define('DOKU_PARSER_EOL',"\n"); // add this to make handling test cases simpler class Doku_Handler { -- GitLab