google / google/google-java-format

Link lines longer than 100 chars are malformed in ///

Open
#1,369 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.2k
Forks
937
Avg merge
6m
Merged PRs (30d)
3

Description

The first line illustrates a 100 character long line

The following are a markdown link line of 100 characters, and the next the same of 101 characters.

```
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
/// [Design-doc](8901234567890123456789012345678901234567890123456789012345678901234567890123456789)
/// [Design-doc](89012345678901234567890123456789012345678901234567890123456789012345678901234567890)
```

The first is maintained through the formatter

The second is malformed by moving the link to a new line prefixed by `//`

```
/// [Design-doc](8901234567890123456789012345678901234567890123456789012345678901234567890123456789)
///
// [Design-doc](89012345678901234567890123456789012345678901234567890123456789012345678901234567890)
```

It'll do this regaurdless of `///` comments before or after, so it can result in a `//` line in the middle of `///` ones

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.