Diff replaces a tab by 4 characters until compose bug is fixed

https://github.com/JetBrains/compose-jb/issues/615
This commit is contained in:
Abdelilah El Aissaoui 2022-04-11 04:32:05 +02:00
parent b68135d3a4
commit cdf7d61045

View File

@ -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(),