Skip to content

Commit

Permalink
Collapse tabs to one space (fix #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seggan committed Jul 16, 2024
1 parent 63478ff commit ccded73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data class Span(val start: Int, val end: Int, val source: CodeSource) {
val lines = source.text.split("\n")
val lineText = lines[line - 1]
val sb = StringBuilder()
sb.append("|> ").appendLine(lineText)
sb.append("|> ").appendLine(lineText.replace("\t", " "))
sb.append(" ".repeat(col + 2))
sb.append("^")
if (length > 1) {
Expand Down

0 comments on commit ccded73

Please sign in to comment.