remove indents from dowrap if they are 0 width

This commit is contained in:
2025-06-05 23:39:49 +01:00
parent 4c2c5a4f79
commit 1b90438bb9
2 changed files with 7 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ ParsedValue *parse_dowrap(char *file, DArray *tokens, size_t *index) {
pass = true;
break;
}
if (temp_indent_depth >= indent_depth) {
if (temp_indent_depth > indent_depth) {
size_t indent_amount = temp_indent_depth-indent_depth;
Token indent_token;
indent_token.line = token->line;