tnorbye / kdoc-formatter

Reformats Kotlin KDoc comments, reflowing text and other cleanup, both via IDE plugin and command line utility
Apache License 2.0
73 stars 2 forks source link

Unneeded break caused by @ #65

Closed davidtorosyan closed 2 years ago

davidtorosyan commented 2 years ago

Not sure why there’s a break after @link

Before:

/**
 * Weird break
 *
 * alink aaaaaaa
 *
 * @param a aaaaaa
 * @link aaaaaaa
 */
fun foo() = Unit

After:

/**
 * Weird break
 *
 * alink aaaaaaa
 *
 * @param a aaaaaa
 * @link
 *     aaaaaaa
 */
fun foo() = Unit

Using v1.5.1 with:

--max-line-width 20 --max-comment-width 20
tnorbye commented 2 years ago

This is fixed in 1.5.4 (released just now).