Added code blocks

This commit is contained in:
Nate Choe
2022-04-23 02:10:22 -05:00
parent 416edf6c8e
commit 8a7c1e9bdf
5 changed files with 70 additions and 18 deletions

View File

@@ -39,11 +39,11 @@ char *getline(struct linefile *file) {
return ret;
}
if (c == '\t') {
while (len % 4 != 0) {
do {
ret = append(ret, ' ', &len, &alloc);
if (ret == NULL)
return NULL;
}
} while (len % 4 != 0);
}
else {
ret = append(ret, c, &len, &alloc);