lib/dnote/templates/md/list.erb in dnote-1.6.1 vs lib/dnote/templates/md/list.erb in dnote-1.7.0
- old
+ new
@@ -3,7 +3,8 @@
<%= '=' * title.size %>
<% notes.each_with_index do |note, index| %>
<%= "%s" % [index+1] %>. <%= note.label %>: <%= h note.textline %> (<%= note.file %>: <%= note.line %>)
+<% if note.code? %><%= "\n" + note.code.tabset(4).rstrip + "\n\n" %><% end %>
<% end %>