WriteDescriptiveListItem() missing closing tags for dt and dd
This commit is contained in:
parent
f67a251e27
commit
9aec7ca151
2 changed files with 26 additions and 17 deletions
|
@ -335,9 +335,10 @@ func (w *HTMLWriter) WriteDescriptiveListItem(di DescriptiveListItem) {
|
|||
} else {
|
||||
w.WriteString("?")
|
||||
}
|
||||
w.WriteString("</dt>\n")
|
||||
w.WriteString("<dd>\n")
|
||||
WriteNodes(w, di.Details...)
|
||||
w.WriteString("<dd>\n")
|
||||
w.WriteString("</dd>\n")
|
||||
}
|
||||
|
||||
func (w *HTMLWriter) WriteParagraph(p Paragraph) {
|
||||
|
|
40
org/testdata/lists.html
vendored
40
org/testdata/lists.html
vendored
|
@ -109,26 +109,30 @@ descriptive lists
|
|||
</p>
|
||||
<dl>
|
||||
<dt class="unchecked">
|
||||
term<dd>
|
||||
term</dt>
|
||||
<dd>
|
||||
<p>
|
||||
details
|
||||
continued details
|
||||
</p>
|
||||
<dd>
|
||||
</dd>
|
||||
<dt class="unchecked">
|
||||
?<dd>
|
||||
?</dt>
|
||||
<dd>
|
||||
<p>
|
||||
details without a term
|
||||
</p>
|
||||
<dd>
|
||||
</dd>
|
||||
<dt class="checked">
|
||||
term<dd>
|
||||
term</dt>
|
||||
<dd>
|
||||
<p>
|
||||
details on a new line
|
||||
</p>
|
||||
<dd>
|
||||
</dd>
|
||||
<dt>
|
||||
term<dd>
|
||||
term</dt>
|
||||
<dd>
|
||||
<p>
|
||||
details on a new line (with an empty line in between)
|
||||
<strong>continued</strong>
|
||||
|
@ -140,7 +144,7 @@ echo "Hello World!"
|
|||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>
|
||||
some list termination tests
|
||||
|
@ -207,31 +211,35 @@ ordered 2
|
|||
</ol>
|
||||
<dl>
|
||||
<dt>
|
||||
unordered descriptive<dd>
|
||||
unordered descriptive</dt>
|
||||
<dd>
|
||||
<p>
|
||||
1
|
||||
</p>
|
||||
<dd>
|
||||
</dd>
|
||||
<dt>
|
||||
unordered descriptive<dd>
|
||||
unordered descriptive</dt>
|
||||
<dd>
|
||||
<p>
|
||||
2
|
||||
</p>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>
|
||||
ordered descriptive<dd>
|
||||
ordered descriptive</dt>
|
||||
<dd>
|
||||
<p>
|
||||
1
|
||||
</p>
|
||||
<dd>
|
||||
</dd>
|
||||
<dt>
|
||||
ordered descriptive<dd>
|
||||
ordered descriptive</dt>
|
||||
<dd>
|
||||
<p>
|
||||
2
|
||||
</p>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<ul>
|
||||
<li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue