X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=src%2Fparser.c;h=0898b6075808d1f443d5e609a399a767de1fe541;hb=354cf2e07ccd0d7900f96bffc279093997cbe203;hp=615cc6e26971c5191123282cb16864f45cf556a6;hpb=b56994fd240a45f3b4060883f6a17c659c495e23;p=smdp.git diff --git a/src/parser.c b/src/parser.c index 615cc6e..0898b60 100644 --- a/src/parser.c +++ b/src/parser.c @@ -2,7 +2,7 @@ * Functions necessary to parse a file and transform its content into * a deck of slides containing lines. All based on markdown formating * rules. - * Copyright (C) 2016 Michael Goehler + * Copyright (C) 2018 Michael Goehler * * This file is part of mdp. * @@ -481,6 +481,7 @@ int markdown_analyse(cstring_t *text, int prev) { // strip trailing spaces for(eol = text->size; eol > offset && iswspace(text->value[eol - 1]); eol--); + text->size = eol; // IS_UNORDERED_LIST_# if(text->size >= offset + 2 &&