summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/converter/html5.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/asciidoctor/converter/html5.rb b/lib/asciidoctor/converter/html5.rb
index c4e4045c..20d0329c 100644
--- a/lib/asciidoctor/converter/html5.rb
+++ b/lib/asciidoctor/converter/html5.rb
@@ -579,12 +579,11 @@ Your browser does not support the audio tag.
terms.each do |dt|
result << %(<dt#{dt_style_attribute}>#{dt.text}</dt>)
end
- if dd
- result << '<dd>'
- result << %(<p>#{dd.text}</p>) if dd.text?
- result << dd.content if dd.blocks?
- result << '</dd>'
- end
+ next unless dd
+ result << '<dd>'
+ result << %(<p>#{dd.text}</p>) if dd.text?
+ result << dd.content if dd.blocks?
+ result << '</dd>'
end
result << '</dl>'
end