diff --git a/src/pebblisp.c b/src/pebblisp.c index d65e74c..12cccea 100644 --- a/src/pebblisp.c +++ b/src/pebblisp.c @@ -580,8 +580,16 @@ int readFile(const char *filename, struct Environment *env) { } } while(fgets(line, 256, input)) { - if(line[0] != ';') { - strncat(page, line, strlen(line) - 1); + int i; + for(i = 0; i < 256; i++) { + if(line[i] != ' ') { + if(line[i] == ';') { + break; + } else { + strncat(page, line, strlen(line) - 1); + break; + } + } } }