<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59567>59567</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Excess characters in a line when formatting of BlockIndent.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
red1bluelost
</td>
</tr>
</table>
<pre>
Using the following config on the below code does not properly break the code into BlockIndent as it should. The static_assert line is formatted to exceed 80 character column limit.
>From toying around, I noticed that if I changed the angle brackets (`<`, `>`) into parenthesis (`(`, `)`), the line is formatted correctly.
```yaml
---
Language: Cpp
AlignAfterOpenBracket: BlockIndent
ColumnLimit: 80
...
```
```c++
#include <iterator>
#include <type_traits>
template <typename Category> struct S {
static_assert(std::is_base_of_v<std::output_iterator_tag, Category> || std::is_base_of_v<std::input_iterator_tag, Category>);
};
```
The correct formatting would be:
```c++
static_assert(
std::is_base_of_v<std::output_iterator_tag, Category> ||
std::is_base_of_v<std::input_iterator_tag, Category>
);
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE9vqzgQ_zTmMgoC04Rw4JDSRqr0pD3s23NkzADeGhvZw8vLt1_ZpE1eu9ru4UloYMY_5s9vPCO8V4NBrNn2kW2fErHQaF3tsMtbvaC2npLWdpf6L6_MADQi9FZrew6atKZXA1gT7S1qewZpO4TOogdjCWZnZ3T6Aq1D8RphEaAMWXjUVr6-mA4NgfCgCPxoF92l8H1E8CRIyZPwHh2BVgZBeeitmwQRdkAW8KdE7GCfgRyFE5LQgbR6mQxoNSlKWfbEssMqj85OQPYSEhfOLqZjvIGXkKaSwd8oCFQPL8GZGaIFQZhBI7ROyFckD4zv2S5jRRMkbyAqz1Gp1qJm4dDQiF69o69yRfPqKnkTA3wuTFrnUJK-pHCff_gtPhcx6dW02WzWj2_CDIsYkBUHaOZ5NR60GsyhJ3R_zGge1xIC4o73FdlEzr4FysL5PlvNaZp-CP1BlYw_hme18kIZqZcOgRWNInSCrAvs_MsxXWY8kROK_A0RJeE0a0HvKCMmhEYQDtZdWPEMntwiCf4EVl4j_3pVGN976lhxYMVB-VMrPJ5sf_rBiubdbheaFzq9JXkiMYR-3IdhZcPKBr50pcwXnkKvizeOyqfb9wdSo_weByT2_-1GhPt6DmMBbejvf7UAPjHxTtDvIuT_OvyalmvGv9DzVlXS1UVXFZVIsM53Zc6rLCvLZKxllbVZVex3bcb7ri-lwF2Josp2fdHuCkxUzTPOc56X-TZ_KMq0klvMK9EXYpu3nRTsIcNJKJ1q_WNKrRsS5f2C9bba7spEixa1j8uQc4NniIeM87AbXR3-2bTL4NlDppUnf_NCinTcolILM2zW5rHtEzz_lOj9bUN5UAbEOvfnEc19n21_P5xpsjhdj0SzD6TyI-PHQdG4tKm0E-PHEPz62szO_o2SGD_GlD3jx1jSPwEAAP__JTPWdA">