Commit e1e63d2a5b312b64d9935c3d92eb8d2e15a5b1b3
1 parent
cd27481f
Convert multiple newlines and carriage returns in a row to a single
space (to work better if the templates are changed to DOS line ending format) git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4961 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
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 | } | ... | ... |