html: write descriptive list closing dt tag on separate line

now that i'm already looking at it due to the bug leenzhu found why not put the
</dt> on a separate line to match the convention - looks better to me; doesn't
change anything.
This commit is contained in:
Niklas Fasching 2019-08-26 14:36:22 +02:00
parent e6c8cdbd9d
commit a143b04826
2 changed files with 17 additions and 9 deletions

View file

@ -335,7 +335,7 @@ func (w *HTMLWriter) WriteDescriptiveListItem(di DescriptiveListItem) {
} else { } else {
w.WriteString("?") w.WriteString("?")
} }
w.WriteString("</dt>\n") w.WriteString("\n</dt>\n")
w.WriteString("<dd>\n") w.WriteString("<dd>\n")
WriteNodes(w, di.Details...) WriteNodes(w, di.Details...)
w.WriteString("</dd>\n") w.WriteString("</dd>\n")

View file

@ -109,7 +109,8 @@ descriptive lists
</p> </p>
<dl> <dl>
<dt class="unchecked"> <dt class="unchecked">
term</dt> term
</dt>
<dd> <dd>
<p> <p>
details details
@ -117,21 +118,24 @@ continued details
</p> </p>
</dd> </dd>
<dt class="unchecked"> <dt class="unchecked">
?</dt> ?
</dt>
<dd> <dd>
<p> <p>
details without a term details without a term
</p> </p>
</dd> </dd>
<dt class="checked"> <dt class="checked">
term</dt> term
</dt>
<dd> <dd>
<p> <p>
details on a new line details on a new line
</p> </p>
</dd> </dd>
<dt> <dt>
term</dt> term
</dt>
<dd> <dd>
<p> <p>
details on a new line (with an empty line in between) details on a new line (with an empty line in between)
@ -211,14 +215,16 @@ ordered 2
</ol> </ol>
<dl> <dl>
<dt> <dt>
unordered descriptive</dt> unordered descriptive
</dt>
<dd> <dd>
<p> <p>
1 1
</p> </p>
</dd> </dd>
<dt> <dt>
unordered descriptive</dt> unordered descriptive
</dt>
<dd> <dd>
<p> <p>
2 2
@ -227,14 +233,16 @@ unordered descriptive</dt>
</dl> </dl>
<dl> <dl>
<dt> <dt>
ordered descriptive</dt> ordered descriptive
</dt>
<dd> <dd>
<p> <p>
1 1
</p> </p>
</dd> </dd>
<dt> <dt>
ordered descriptive</dt> ordered descriptive
</dt>
<dd> <dd>
<p> <p>
2 2