Skip to content

Commit

Permalink
Fixed tab sizes broken by TextMate...
Browse files Browse the repository at this point in the history
  • Loading branch information
ioseb committed Oct 31, 2012
1 parent 9fe6672 commit 2714fc4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions uri_template_parser.c
Expand Up @@ -228,13 +228,13 @@ void uri_template_parse(char *tpl, zval *return_value, zval *vars, zval *capture
smart_str_appendc(&result, *(++tpl));
smart_str_appendc(&result, *(++tpl));
} else {
int result_len = result.len;
int distance = 0;
uri_template_substr_copy(&result, tpl, 1, URI_TEMPLATE_ALLOW_RESERVED);
int result_len = result.len;
int distance = 0;

uri_template_substr_copy(&result, tpl, 1, URI_TEMPLATE_ALLOW_RESERVED);

distance = result.len - result_len;
tpl += (distance % 3 ? 1 : distance / 3) - 1;
distance = result.len - result_len;
tpl += (distance % 3 ? 1 : distance / 3) - 1;
}
}

Expand Down

0 comments on commit 2714fc4

Please sign in to comment.