Commit 27103697525dc8d7b6d5055c435de9fd0d10ba87

Authored by nbm
1 parent f986d488

Make spaces before linebreaks less jarring.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4963 c91229c3-7414-0410-bfa2-8a42b809f60b
bin/smarty_to_gettext.php
... ... @@ -81,7 +81,7 @@ function do_file($file)
81 81 $content = $matches[3][$i];
82 82 if (!preg_match('/formatmatters\s*=\s*["\']?\s*(.[^\"\']*)\s*["\']?/', $matches[2][$i], $match)) {
83 83 $replace = array(
84   - '@[\n\r]+@' => ' ',
  84 + '@ *[\n\r]+@' => ' ',
85 85 );
86 86 $content = preg_replace(array_keys($replace), array_values($replace), $content);
87 87 }
... ...
lib/templating/smartytemplate.inc.php
... ... @@ -118,7 +118,7 @@ class KTSmartyTemplate extends KTTemplate {
118 118 $oi18n = $oRegistry->geti18n($sDomain);
119 119 $content = trim($content);
120 120 $replace = array(
121   - '@[\n\r]+@' => ' ',
  121 + '@ *[\n\r]+@' => ' ',
122 122 );
123 123 $content = preg_replace(array_keys($replace), array_values($replace), $content);
124 124  
... ...