<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/62871>62871</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            `clang-format` does not format RawString text protos correctly when there is TextProto specific config.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Given the following c++ code: 

```c++
#include <string>
namespace {
std::string string = R"pb(
  my_msg {
    item: "asdfasdfasdfasdfasdfasdfsadf"
 item_three: "asdfasdfasdfasdfasdfasdfas"
    item_two: "asdadsadfsafdsafdsadfsafds"
  }
)pb";
}
```

It will format differently with no logical difference in the `.clang-format`

With just `BasedOnStyle: Google` it will format as above.

With the following:
```
---
BasedOnStyle: Google
---
Language: TextProto
...
```
I would expect it to format as above, however, instead it will format as:
```
#include <string>
namespace {
std::string string = R"pb(
  my_msg {
 item : "asdfasdfasdfasdfasdfasdfsadf"
    item_three : "asdfasdfasdfasdfasdfasdfas"
    item_two : "asdadsadfsafdsafdsadfsafds"
  }
)pb";
}
```

I have a unittest that repros this that I'll link to as soon as the diff is up.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VFFvnDgQ_jXmZbQIDMvuPvCQdG-rSCfdqT3pHqNZewDnvDbCw5L8-5OBJE2bqOpLJYwtz3zjmc-fB0MwrSOqxfZWbI8Jjtz5ob5T6Phh1NpScvb6qf5sruSAO4LGW-sn41pQQt4KeQvKaxLFDYjsKLKb9V9ly7c6rbuyME7ZUROI4lPgwbhWFH8sRocXCj0qArFb_QNrUdyI4mZxhXUSxRG-CCn7s5D7xRPg8nR_Ce0rFgDAMF3mzKTEoJv3RkDdCClXTATcczcQ_QSG4RW0HnTPk39FoY6RAzZ6Gev6G5TYHZ9ZOcRKpCieaXqxPLP4LbV3DJOxFho_XJBBm6ahgRzbJ5gMd-A8WN8ahfbFpgjMcnuiylJl0bWbBf5d7H9jgIcxcHS8xUD6L_eVn-xMx2fvW0uiysC8TQED4NlfKf0h1BvBxKt8r6zNZrMsPjjwrdOf6NoR29nhH3rkvwfPfjGlafruAXcw-dFqoMeeFMfs2X-fu5CfoPMTXWmIS-MCE-ofK_2oiN8q7Sg3-CVhv2g0avtn0A_EDb9F3dDhlQBhdIaZAgN3yDBQP_gA3JmwbNwJubMWrHH_xdvEAMF7F-eouSh8MAHGPk10XehDccCE6rzal7t9uavypKsPSmN5xnKLu1w31YH2u2q_x7PelmWxPVBiapnJIttKmR_KKstTLPN9pvOGyrzEstiKMqMLGptae72kfmgTE8JIdSX3uzyxeCYb5sYqpaMJZmNkYntMhjpiNuexDaLMrAkcXqOwYUt1bJ5vXypoTwGc52c5fsHp66IbpkeGPj6FAMoPA6m5H3RL0x4okvHyWiD0pExjFCjvGtOmyTjYumPuZ3nLk5Cn1nA3nlPlL0KeYmbrtOkH_0CKhTzN9QQhT3O9_wcAAP__MjvtJg">