Trim rule
This commit is contained in:
parent
c7c5a20977
commit
b7bdc5d8cb
|
@ -116,9 +116,11 @@ print_rules(void)
|
|||
static char *
|
||||
parse_rulefrag(FILE *f)
|
||||
{
|
||||
int depth = 0;
|
||||
int depth = 0, trim = 0;
|
||||
char c, *origin = dict_;
|
||||
while(f && fread(&c, 1, 1, f) && c && c != 0xa) {
|
||||
if(c == ' ' && !trim) continue;
|
||||
trim = 1;
|
||||
if(c == '(') {
|
||||
depth++;
|
||||
if(depth == 1) continue;
|
||||
|
|
Loading…
Reference in New Issue