summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dallen@redhat.com>2013-04-20 18:48:51 -0600
committerDan Allen <dallen@redhat.com>2013-04-20 18:48:51 -0600
commitafe1638da8696b0abeae50bbcecda2d4c51b8a0f (patch)
tree4a0b3091111f180005033741dc53258b1c008806 /lib
parent98133fbb6b4981a7b07ff71bdb7b943c1ff435b9 (diff)
resolves #260 use code element instead of tt
- perform macro sustitution on email in document header
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/backends/html5.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asciidoctor/backends/html5.rb b/lib/asciidoctor/backends/html5.rb
index ad3b823d..e40c77e9 100644
--- a/lib/asciidoctor/backends/html5.rb
+++ b/lib/asciidoctor/backends/html5.rb
@@ -105,7 +105,7 @@ pre code { background-color: #F8F8F8; padding: 0; }
<h1><%= @header.title %></h1>
<% end %>
<% if attr? :author %><span id="author"><%= attr :author %></span><br>
- <% if attr? :email %><span id="email" class="monospaced">&lt;<%= attr :email %>&gt;</span><br><% end %><% end %>
+ <% if attr? :email %><span id="email"><%= sub_macros(attr :email) %></span><br><% end %><% end %>
<% if attr? :revnumber %><span id="revnumber">version <%= attr :revnumber %><%= attr?(:revdate) ? ',' : '' %></span><% end %>
<% if attr? :revdate %><span id="revdate"><%= attr :revdate %></span><% end %>
<% if attr? :revremark %><br><span id="revremark"><%= attr :revremark %></span><% end %>
@@ -618,7 +618,7 @@ class InlineQuotedTemplate < BaseTemplate
QUOTED_TAGS = {
:emphasis => ['<em>', '</em>'],
:strong => ['<strong>', '</strong>'],
- :monospaced => ['<tt>', '</tt>'],
+ :monospaced => ['<code>', '</code>'],
:superscript => ['<sup>', '</sup>'],
:subscript => ['<sub>', '</sub>'],
:double => ['&#8220;', '&#8221;'],