From 562449a727f77e557ef359b3d46317b488e4f262 Mon Sep 17 00:00:00 2001 From: _N3m0 Date: Thu, 4 Jan 2024 22:33:20 +0100 Subject: [PATCH] finit ? --- eval.c | 19 +++++++++++++++---- main.c | 2 ++ 2 files changed, 17 insertions(+), 4 deletions(-) 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();