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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions