[OTLayout] Whitespace
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 2 May 2013 19:27:53 +0000 (15:27 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 2 May 2013 19:39:16 +0000 (15:39 -0400)
src/hb-ot-layout-gsub-table.hh

index 5247c68..d25a0d3 100644 (file)
@@ -1196,38 +1196,38 @@ struct SubstLookup : Lookup
 
     if (likely (!is_reverse ()))
     {
-       /* in/out forward substitution */
-       c->buffer->clear_output ();
-       c->buffer->idx = 0;
-
-       while (c->buffer->idx < c->buffer->len)
-       {
-         if (digest->may_have (c->buffer->cur().codepoint) &&
-             (c->buffer->cur().mask & c->lookup_mask) &&
-             apply_once (c))
-           ret = true;
-         else
-           c->buffer->next_glyph ();
-       }
-       if (ret)
-         c->buffer->swap_buffers ();
+      /* in/out forward substitution */
+      c->buffer->clear_output ();
+      c->buffer->idx = 0;
+
+      while (c->buffer->idx < c->buffer->len)
+      {
+       if (digest->may_have (c->buffer->cur().codepoint) &&
+           (c->buffer->cur().mask & c->lookup_mask) &&
+           apply_once (c))
+         ret = true;
+       else
+         c->buffer->next_glyph ();
+      }
+      if (ret)
+       c->buffer->swap_buffers ();
     }
     else
     {
-       /* in-place backward substitution */
-       c->buffer->remove_output ();
-       c->buffer->idx = c->buffer->len - 1;
-       do
-       {
-         if (digest->may_have (c->buffer->cur().codepoint) &&
-             (c->buffer->cur().mask & c->lookup_mask) &&
-             apply_once (c))
-           ret = true;
-         else
-           c->buffer->idx--;
+      /* in-place backward substitution */
+      c->buffer->remove_output ();
+      c->buffer->idx = c->buffer->len - 1;
+      do
+      {
+       if (digest->may_have (c->buffer->cur().codepoint) &&
+           (c->buffer->cur().mask & c->lookup_mask) &&
+           apply_once (c))
+         ret = true;
+       else
+         c->buffer->idx--;
 
-       }
-       while ((int) c->buffer->idx >= 0);
+      }
+      while ((int) c->buffer->idx >= 0);
     }
 
     return ret;