htex

simple incorrect html parser
git clone git://git.relim.de/htex.git
Log | Files | Refs | README

commit 97aacdb5f6227aafc7f2ddb0553de77205c785c0
parent 4873756e4ae3c76f0f90da7f3feb61442dd3f4ef
Author: Robin <kroekerrobin@gmail.com>
Date:   Sun, 28 Aug 2022 21:46:43 +0200

Find tag also when tag is splitted over multiple lines

Diffstat:
M.gitignore | 5++---
Mhtex.c | 2+-
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,2 +1,2 @@ -test.html -htex -\ No newline at end of file +test*.html +htex diff --git a/htex.c b/htex.c @@ -44,7 +44,7 @@ void find_tag_name(int open_tag_pos) { int pos = open_tag_pos + i; if (pos > strlen(text)) return; - if (text[pos] == ' ') { + if (text[pos] == ' ' || text[pos] == '\n') { end_of_tag_name = pos-1; break; }