add < to encaprulated characters. fix #249

This commit is contained in:
Petr Korolev 2015-06-12 09:17:00 +03:00
parent f527cfff67
commit 6c6116381b

View File

@ -41,7 +41,7 @@ module GitHubChangelogGenerator
def encapsulate_string(string)
string.gsub! '\\', '\\\\'
encpas_chars = %w(> * _ \( \) [ ] #)
encpas_chars = %w(< > * _ \( \) [ ] #)
encpas_chars.each do |char|
string.gsub! char, "\\#{char}"
end