<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJy9VMFu2zAM_Rr7QtRw5Dh1Dj6kywoM6E5Ddx1oibHVylJgyc3y96PldE2LphiwYYJgS6L49B5JqXHqWN97bVu4u_v-FXw4GkrEJ0CroNVPZEHb_RiSYpPk2yTfJKv81OepuOUO0qBtr3Zu6DGA2-3OjdL1PdnwwX4727QNENtoZ0sglRQ3758bv69gUCkPCH6PkqAhXiXg_W-PYoR_q-WymD_W8c1B6AiMtpHyO76rHFoKHn4vsoP2EHTPWscAln6GOJtyN6Ff4MY4ypEH6wKQxcZQPPkEO5XBlHi0R5BO8frI1oFdDlwHHhLBojfsOw_O2LBHzwHPZj2fszYDvYNH6w7wBWTHJOaDImpw_y0Fz-0snD-wRW0vJUQHOGhj-CLgEdDPqquGJI6emMscd641HbSzaE71pu3HUU_EOktVXah1scYUOaxuqPvHcVD0kI6DqbsQ9n4KS4RodejGJmOtPDHm6fl3tR_cA0mO_632fiTPg7Kolsu0qxfFqpIkcxS0QIG79XUlm1Kuy0KpploVqcGGjK-T8iYRohlb_sZqEeKc77RabtO_Z6RrkQvuizJfL4pCZNcoFI8F5VXTlM0qWebUozbZhJO5oU2HOkIyN89Go33wL0b0XreWKApghkEHEyev2JdbuLeWJHmPw_GUHU4X1-jLm3DhFeLLcei07EBpP10Nf3Yv0qiujtJ-Aaikm7E>53844</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Unnecessary space added before `// clang-format on` which disables formatting
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            bug,
            clang-format
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          mkurdej
      </td>
    </tr>
</table>

<pre>
    Using LLVM style, and given input:
```
// clang-format off
//comment
// clang-format on
int      unformatted;
```

clang-format adds a space before `clang-format on`:
```
// clang-format off
//comment
//  clang-format on
int unformatted;
```

So the line `int unformatted;` gets formatted this time but next time, `//  clang-format on` does not enable the formatting and any code futher down is **not** formatted anymore.
E.g. if know I change the code to:
```
// clang-format off
//comment
//  clang-format on
int         unformatted_again;
```
it will stay as is (because of this additional space in `//  clang-format on`).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9U8Fu2zAM_Rr5QtRwZTuNDz6kywoM6E5Ddx1ki7HVylJgys3y96PldE2HpthhmCDYkig-8j1SjdfH-oGM6-D-_vtXoHC0KOQnUE5DZ57RgXH7KYh8I7KtyDZilZ3mspV3PKG1ynVXOz8OKoDf7c6NrR8GdOGD-26xGRcgjsktloBa5Lfvx43fNzBKawIFtFctQoN8isD3_wzFCP-Wy2Uyf83jm4fQI1jjYsrv-K4y6DAQ_D5kB0MQzMBcpwAOf4a4m2s3o1_IjXG0RwLnA6BTjcUY-QQ7t8FceOWO0HrN5xNbR3Y5cB8QCMmkN-y7LM6yYY-BBU8XPp_TLgWzgyfnD_AF2p6TWAJF1OD_WwlexpmcP1SnjLtUEBPgYKzlh6COoGhhvW6wVRMh57Lozr1mgvFO2VO_Gfex6kJWaaLrXFd5pZJggsValLfnF0W5hQfnsEUiNR5PwByJ5X1t5wsPiOt66E3bgzY0V5XOSppMo637EPY0yx79OxP6qUlZS95Y-_zyu9qP_hFbru-dIZqQeFHm66JI-rrRWrW6KjK9Kncaqya7Lm5UqTMsinyNZWJVg5ZmWkLKZur4G7tRyjc0-bTcJqaWmeR5XWbVdZ7L9EZJzWuJ2bppymYligwHZWw655X6sUvGOqbIyMRGayjQq1ERmc5hVHXGV9y5fqyHp2nU-JhENnWk8gtpt4Zp">