Browse code

pdf.c formatting fixes.

Micah Snyder authored on 2019/06/19 04:09:21
Showing 1 changed files
... ...
@@ -2427,7 +2427,7 @@ static const char *pdf_getdict(const char *q0, int *len, const char *key)
2427 2427
 
2428 2428
     /* if the value is a dictionary object, include the < > brackets.*/
2429 2429
     while (q > q0 && (q[-1] == '<' || q[-1] == '\n'))
2430
-      q--;
2430
+        q--;
2431 2431
 
2432 2432
     *len -= q - q0;
2433 2433
     return q;
... ...
@@ -2535,8 +2535,8 @@ static char *pdf_readstring(const char *q0, int len, const char *key, unsigned *
2535 2535
                         case '9':
2536 2536
                             /* octal escape */
2537 2537
                             if (q + 2 < end) {
2538
-                                *s++ = 64*(q[0] - '0') + 8*(q[1] - '0') + (q[2] - '0');
2539
-                                q++; q++;
2538
+                                *s++ = 64 * (q[0] - '0') + 8 * (q[1] - '0') + (q[2] - '0');
2539
+                                q += 2;
2540 2540
                             }
2541 2541
                             break;
2542 2542
                         default:
... ...
@@ -2561,8 +2561,8 @@ static char *pdf_readstring(const char *q0, int len, const char *key, unsigned *
2561 2561
         len -= 1;
2562 2562
         // skip newlines after <
2563 2563
         while (len > 0 && *start == '\n') {
2564
-          start = ++q;
2565
-          len -= 1;
2564
+            start = ++q;
2565
+            len -= 1;
2566 2566
         }
2567 2567
         q = memchr(q + 1, '>', len - 1);
2568 2568
         if (!q)