1
0
Fork 0

Code beautifying.

This commit is contained in:
torsten 2009-05-29 16:24:10 +00:00
parent 625b47569f
commit 7b7966dbb1

View file

@ -156,14 +156,14 @@
<nasal>
<open><![CDATA[
var dlg_root = cmdarg().getNode("/");
var dlg_root = cmdarg();
var normalize_string = func(src) {
if( src == nil ) src = "";
var dst = "";
for( var i = 0; i < size(src); i+=1 ) {
if( src[i] == 10 or src[i] == 13 )
src[i] = 32;
if( src[i] == `\n` or src[i] == `\r` )
src[i] = ` `;
if( i != 0 and src[i] == 32 and src[i-1] == 32 )
continue;