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

Multi-line `@link` isn't converted if there's a `#` #70

Closed davidtorosyan closed 2 years ago

davidtorosyan commented 2 years ago

Before:

/**
 * Single line is converted {@link foo}
 *
 * Multi line is converted {@link
 * foo}
 *
 * Single line with hash is converted {@link #foo}
 *
 * Multi line with has IS NOT converted {@link
 * #foo}
 */
fun foo() = Unit

After:

/**
 * Single line is converted [foo]
 *
 * Multi line is converted [foo]
 *
 * Single line with hash is converted [foo]
 *
 * Multi line with has IS NOT converted [
 *
 * #foo}
 */
fun foo() = Unit

Using v1.5.4 with default options

tnorbye commented 2 years ago

Fixed in 1.5.5