-the red fox jumped into the leaf +the brown fox dashed into the leaf --------------------------------------- -foo bar baz barf +foo baz bar barf --------------------------------------- - return {bounds:[from,to],good:good}; + var ret = {bounds:[from,to],good:good}; + Controller.log_("computeSelection: from: "+from.outerHTML); + Controller.log_("computeSelection: {bounds:["+from+","+to+"],good: "+good+" }"); + return ret; --------------------------------------- -whitespace +whitespace --------------------------------------- - tab indent to spaces + tab indent to spaces --------------------------------------- - a = "hello"; - b = "world"; - c = a + " " + b; + if (true) { + a = "hello"; + b = "world"; + c = a + " " + b; + } --------------------------------------- - n = n.replace(/</g, "<"); - n = n.replace(/>/g, ">"); + if (true) { + n = n.replace(/</g, "<"); + n = n.replace(/>/g, ">"); + } --------------------------------------- - NSString* installationPath = @"/usr/local/bin/gitx"; + NSString* installationPath = @"/usr/local/bin/"; + NSString* installationName = @"gitx"; --------------------------------------- - char const* arguments[] = { "-f", "-s", [toolPath UTF8String], [installationPath UTF8String], NULL }; + char const* mkdir_arg[] = { "-p", [installationPath UTF8String], NULL}; + char const* mkdir = "/bin/mkdir"; + AuthorizationExecuteWithPrivileges(auth, mkdir, kAuthorizationFlagDefaults, (char**)mkdir_arg, NULL); + char const* arguments[] = { "-f", "-s", [toolPath UTF8String], [[installationPath stringByAppendingString: installationName] UTF8String], NULL };