From cdf7d610459392f1645c7787303c23943f83fcba Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Mon, 11 Apr 2022 04:32:05 +0200 Subject: [PATCH] Diff replaces a tab by 4 characters until compose bug is fixed https://github.com/JetBrains/compose-jb/issues/615 --- src/main/kotlin/app/ui/Diff.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/ui/Diff.kt b/src/main/kotlin/app/ui/Diff.kt index f4b9b65..0b0ca94 100644 --- a/src/main/kotlin/app/ui/Diff.kt +++ b/src/main/kotlin/app/ui/Diff.kt @@ -338,7 +338,7 @@ fun DiffLine(highestLineNumberLength: Int, line: Line) { } Text( - text = line.text, + text = line.text.replace("\t", " "), // this replace is a workaround until this issue gets fixed https://github.com/JetBrains/compose-jb/issues/615 modifier = Modifier .padding(start = 8.dp) .fillMaxSize(),