diff --git a/eval.c b/eval.c index 5a7512d..bbf2ccc 100644 --- a/eval.c +++ b/eval.c @@ -15,11 +15,13 @@ void print_text(const char* text, int len){ for (int i=0; i= PAGE_WIDTH || text[i] == '\n'){ + if (!state.beginLine && (state.y >= PAGE_WIDTH || text[i] == '\n')){ state.y = 0; state.x++; state.beginLine = 1; @@ -128,4 +130,13 @@ void evaluate(Token* token){ break_line(); print_text(EXPAND_LIT("-------------------------------------------------------------------------------")); } + else if (token->type == BLOCKQUOTE) + { + print_text(EXPAND_LIT(" ")); + printf(FC_SWAP); + } + else if (token->type == END_BLOCKQUOTE) + { + printf(FC_nSWAP); + } } diff --git a/main.c b/main.c index c3efa1d..647aec6 100644 --- a/main.c +++ b/main.c @@ -8,6 +8,8 @@ int main(int argc, char* argv[]){ getUserConfig(argc, argv); getPage(); + //printPage(); + Token* token = NULL; do { token = nexttoken();