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> </ol>
<h1>Acknowledgements</h1> <h1>Acknowledgements</h1>
<p> <p>
Surely, we could not have done this huge amount of work all by ourselves.<br /> Surely,<br>
Therefore, we cannot thank enough the following persons for their kind contributions: 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. 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 "" "(=?)" .. -- eq = the optional; "=", else ""
"(['\"]?)", -- quote = an optional "'" or '"' following the "=", or "" "(['\"]?)", -- quote = an optional "'" or '"' following the "=", or ""
apos) apos)
if not k or k == "/>" then break end if not k or k == "/>" or k == ">" then break end
if eq == "" then if eq == "" then
v = "" v = ""
else else