summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2014-04-15 23:38:14 -0600
committerDan Allen <dan.j.allen@gmail.com>2014-04-15 23:38:14 -0600
commit6ac3372c64a46f725803f2e76736995a96f30086 (patch)
treeb0af77e84c977522ff60229b95b9e0d2396e475c
parent402273b05f0e48ae4c26a977583c613b6a664f87 (diff)
minor optimizations in HTML5 converter
-rw-r--r--lib/asciidoctor/converter/html5.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/asciidoctor/converter/html5.rb b/lib/asciidoctor/converter/html5.rb
index 61b66934..b840e38c 100644
--- a/lib/asciidoctor/converter/html5.rb
+++ b/lib/asciidoctor/converter/html5.rb
@@ -784,7 +784,7 @@ Your browser does not support the audio tag.
result << %(</t#{tsec}>)
end
end
- result << %(</table>)
+ result << '</table>'
result * EOL
end
@@ -840,8 +840,7 @@ Your browser does not support the audio tag.
else
ul_class_attribute = node.style ? %( class="#{node.style}") : nil
end
- div_class_attribute = %( class="#{div_classes * ' '}")
- result << %(<div#{id_attribute}#{div_class_attribute}>)
+ result << %(<div#{id_attribute} class="#{div_classes * ' '}">)
result << %(<div class="title">#{node.title}</div>) if node.title?
result << %(<ul#{ul_class_attribute}>)