txt2html

Converts plaintext to HTML
git clone git://src.gearsix.net/txt2html
Log | Files | Refs | Atom | README

commit a5370e97bbc055729141d8b65961e7f836277fb9
parent 38052372387b8eb9fd73c5d2e1c6c1aad1bbd2d6
Author: gearsix <gearsix@tuta.io>
Date:   Mon, 30 Aug 2021 12:09:50 +0100

bugfix to closing final node

Diffstat:
Mtxt2html.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/txt2html.c b/txt2html.c @@ -183,7 +183,7 @@ struct node *buf2ast(const char *buf, struct node *ast) size_t len = (buf != NULL) ? strlen(buf) : 0; if (buf == NULL && ast != NULL) - n = newnode(n, CLOSE+n->prev->type); + n = newnode(n, CLOSE+n->type); while (i < len && buf != NULL) { while (buf[i] == '\n') ++i;