From: Fletcher T. Penney Date: Mon, 11 Mar 2019 04:10:36 +0000 (-0400) Subject: UPDATED: Tidy code X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3587dfc6ec8081fe8bc87dfebf835ddf229dfab4;p=multimarkdown UPDATED: Tidy code --- diff --git a/Sources/libMultiMarkdown/html.c b/Sources/libMultiMarkdown/html.c index 1bc97e1..1c6606b 100644 --- a/Sources/libMultiMarkdown/html.c +++ b/Sources/libMultiMarkdown/html.c @@ -533,6 +533,8 @@ void mmd_export_token_html(DString * out, const char * source, token * t, scratc token * temp_token = NULL; footnote * temp_note = NULL; + t->out_start = out->currentStringLength; + switch (t->type) { case AMPERSAND: case AMPERSAND_LONG: @@ -2044,6 +2046,8 @@ parse_citation: token_describe(t, source); break; } + + t->out_len = out->currentStringLength - t->out_start; } @@ -2227,6 +2231,8 @@ void mmd_export_token_html_raw(DString * out, const char * source, token * t, sc break; } + + t->out_len = out->currentStringLength - t->out_start; }