diff options
| author | Dan Allen <dallen@redhat.com> | 2013-04-22 22:45:39 -0600 |
|---|---|---|
| committer | Dan Allen <dallen@redhat.com> | 2013-04-22 22:45:39 -0600 |
| commit | cab683bd44753ea20a6097a7ebc09c8a42c3313b (patch) | |
| tree | 370669042577d9d127c6006f33013fed1c61f245 /lib | |
| parent | 0cfeb185b55a1a471e25ef5e1b1918cda6b40032 (diff) | |
fix endline issue that breaks erb
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/backends/html5.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/asciidoctor/backends/html5.rb b/lib/asciidoctor/backends/html5.rb index 50766128..af9a63be 100644 --- a/lib/asciidoctor/backends/html5.rb +++ b/lib/asciidoctor/backends/html5.rb @@ -74,14 +74,14 @@ class DocumentTemplate < BaseTemplate <% unless attr(:stylesheet, '').empty? %> <link rel="stylesheet" href="<%= (attr? :stylesdir) ? File.join((attr :stylesdir), (attr :stylesheet)) : (attr :stylesheet) %>"> <% end %> - <% case attr 'source-highlighter' %> - <% when 'coderay' %> + <% case attr 'source-highlighter' %><% + when 'coderay' %> <% if (attr 'coderay-css', 'class') == 'class' %> <style> <%= template.class.default_coderay_stylesheet %> </style> - <% end %> - <% when 'highlightjs' %> + <% end %><% + when 'highlightjs' %> <link rel="stylesheet" href="<%= (attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3') %>/styles/<%= (attr 'highlightjs-theme', 'default') %>.min.css"> <script src="<%= (attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3') %>/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad()</script> |
