diff --git a/doc/sample.html b/doc/sample.html index 5bf3d11..3907213 100644 --- a/doc/sample.html +++ b/doc/sample.html @@ -19,8 +19,11 @@

Acknowledgements

- Surely, we could not have done this huge amount of work all by ourselves.
- Therefore, we cannot thank enough the following persons for their kind contributions: + Surely,
+ we could not have done this huge amount of work all by ourselves.
+ Therefore,
+ we cannot thank enough the following persons
+ for their kind contributions: diff --git a/src/htmlparser.lua b/src/htmlparser.lua index 00158a4..209332c 100644 --- a/src/htmlparser.lua +++ b/src/htmlparser.lua @@ -27,7 +27,7 @@ local function parse(text) "(=?)" .. -- eq = the optional; "=", else "" "(['\"]?)", -- quote = an optional "'" or '"' following the "=", or "" apos) - if not k or k == "/>" then break end + if not k or k == "/>" or k == ">" then break end if eq == "" then v = "" else