txt2html

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

commit f7695a4617c500bc927216b056443b38f39ad163
parent 665dc21b5c31c628c2f941d81d3d76ff12202ea1
Author: gearsix <gearsix@tuta.io>
Date:   Sat, 10 Jul 2021 03:01:28 +0100

bugfix for double </ol> tags

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

diff --git a/BUGS b/BUGS @@ -0,0 +1 @@ +[ ] for some reason the first <ol> in test.txt is parsed as a single <li>. diff --git a/txt2html.c b/txt2html.c @@ -240,7 +240,6 @@ struct node *closenode(struct node *n) case OL+OPEN+LI: case OL+LI: n = newnode(n, n+1, CLOSE+OL+LI); - n = newnode(n, n+1, CLOSE+OL); break; case OPEN+OL: case CLOSE+OL+LI: