Skip to content

Codeblocks in list items are erroneously reflowed in KDoc #572

@JakeWharton

Description

@JakeWharton

Input:

/**
 * Hey:
 * - Nullable to non-null type
 *
 *    ```
 *    val o1: String? = someFunction()
 *    val o2: String = o1.unsafeCast<String>()
 *    ```
 */
fun String.sup() = "hey"

Output (0.59):

/**
 * Hey:
 * - Nullable to non-null type
 *
 *   ``` val o1: String? = someFunction() val o2: String = o1.unsafeCast<String>() ```
 */
fun String.sup() = "hey"

Expected:

No change from input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions