Allow omitting / at the end of a void element

This commit is contained in:
Wouter Scherphof 2013-04-02 11:15:04 +02:00
parent b58383affe
commit 3ec1a7c097
2 changed files with 6 additions and 3 deletions

View File

@ -19,8 +19,11 @@
</ol>
<h1>Acknowledgements</h1>
<p>
Surely, we could not have done this huge amount of work all by ourselves.<br />
Therefore, we cannot thank enough the following persons for their kind contributions:
Surely,<br>
we could not have done this huge amount of work all by ourselves.<br/>
Therefore,<br >
we cannot thank enough the following persons<br />
for their kind contributions:
<!--
Of course, the text in this paragraph only serve presentation purposes, i.e. it's not actually part of the machine-consumable structured data that this API is serving.
-->

View File

@ -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