lib/dnote/templates/xml.erb in dnote-1.1.4 vs lib/dnote/templates/xml.erb in dnote-1.2.0

- old
+ new

@@ -1,15 +1,15 @@ <?xml version="1.0" ?> <notes> -<% notes.each do |label, per_file| %> - <set label="<%= label %>"> +<% notes.by_label_file.each do |label, per_file| %> + <label name="<%= label %>"> <% per_file.each do |file, line_notes| %> <file src="<%= file %>"> -<% line_notes.sort!{ |a,b| a[0] <=> b[0] } %> -<% line_notes.each do |line, note| %> - <note line="<%= line %>" type="<%= label %>"><%= h note %></note> +<% line_notes.sort!{ |a,b| a.line <=> b.line } %> +<% line_notes.each do |note| %> + <note line="<%= note.line %>" type="<%= label %>"><%= h note.textline %></note> <% end %> </file> <% end %> - </set> + </label> <% end %> </notes>