From: Emden Gansner Date: Mon, 23 Jan 2012 18:09:54 +0000 (-0500) Subject: Fix code format X-Git-Tag: LAST_LIBGRAPH~32^2~558^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed2873044e4a34623b0e8983c5bef1e5b50e8df6;p=graphviz Fix code format --- diff --git a/lib/graph/graphio.c b/lib/graph/graphio.c index abbe5b9d7..a33e9687f 100644 --- a/lib/graph/graphio.c +++ b/lib/graph/graphio.c @@ -131,28 +131,27 @@ _agstrcanon (char* arg, char* buf) if (uc == '\"') { *p++ = '\\'; has_special = TRUE; - } else { - if (maybe_num) { - if (uc == '-') { - if (cnt) { - maybe_num = FALSE; - has_special = TRUE; - } - } - else if (uc == '.') { - if (dotcnt++) { - maybe_num = FALSE; - has_special = TRUE; - } + } + else if (maybe_num) { + if (uc == '-') { + if (cnt) { + maybe_num = FALSE; + has_special = TRUE; } - else if (!isdigit(uc)) { + } + else if (uc == '.') { + if (dotcnt++) { maybe_num = FALSE; has_special = TRUE; } } - else if (!ISALNUM(uc)) + else if (!isdigit(uc)) { + maybe_num = FALSE; has_special = TRUE; + } } + else if (!ISALNUM(uc)) + has_special = TRUE; *p++ = (char) uc; uc = *(unsigned char *) s++; cnt++;