lib/yard/templates/helpers/html_helper.rb in yard-0.5.5 vs lib/yard/templates/helpers/html_helper.rb in yard-0.5.6
- old
+ new
@@ -71,9 +71,10 @@
html = fix_dash_dash(html)
html = fix_typewriter(html)
end
+ html.force_encoding(Encoding.default_external) if RUBY19
html = resolve_links(html)
html = html.gsub(/<pre>(?:\s*<code>)?(.+?)(?:<\/code>\s*)?<\/pre>/m) do
str = $1
str = html_syntax_highlight(CGI.unescapeHTML(str)) unless options[:no_highlight]
%Q{<pre class="code">#{str}</pre>}