]> granicus.if.org Git - graphviz/commitdiff
Fix code format
authorEmden Gansner <erg@research.att.com>
Mon, 23 Jan 2012 18:09:54 +0000 (13:09 -0500)
committerEmden Gansner <erg@research.att.com>
Mon, 23 Jan 2012 18:09:54 +0000 (13:09 -0500)
lib/graph/graphio.c

index abbe5b9d75a5f9609c291773dcdc3420d19d70d1..a33e9687f035451cbe5c5c8a68bb6d926f70130e 100644 (file)
@@ -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++;