Skip to content

SpanStyle properties do not merge when appropriate #709

Open
@JakeWharton

Description

@JakeWharton
buildAnnotatedString {
	append("one")
	withStyle(SpanStyle(textStyle = Underline)) {
		append("two")
		append(buildAnnotatedString {
			withStyle(SpanStyle(textStyle = Italic)) {
				append("three")
			}
		})
	}
	append("four")
}

This is also a problem in Compose UI with its TextDecoration (e.g., underline + strikethrough).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions