diff --git a/lib/messages/svn_log.erb b/lib/messages/svn_log.erb index 185c866..8df9cdb 100644 --- a/lib/messages/svn_log.erb +++ b/lib/messages/svn_log.erb @@ -97,13 +97,13 @@
<% else %> <% if line.start_with?("+++") || line.start_with?("---") %> -<%= line.gsub("<", "<") %>
+<%= line.gsub(/[<>]/, '<' => '<', '>' => '>') %>
<% elsif line.start_with?("+") %> -"><%= line.gsub("<", "<") %>
+"><%= line.gsub(/[<>]/, '<' => '<', '>' => '>') %>
<% elsif line.start_with?("-") %> -"><%= line.gsub("<", "<") %>
+"><%= line.gsub(/[<>]/, '<' => '<', '>' => '>') %>
<% else %> -<%= line %>
+<%= line.gsub(/[<>]/,'<' => '<', '>' => '>') %>
<% end %> <% end %> <% end %>