We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 474bd31 commit 70dae6eCopy full SHA for 70dae6e
lib/rdoc/markup/to_html.rb
@@ -99,7 +99,7 @@ def handle_RDOCLINK url # :nodoc:
99
gen_url CGI.escapeHTML(url), CGI.escapeHTML(text)
100
when /^rdoc-image:/
101
url, alt = $'.split(":", 2) # Split the string after "rdoc-image:" into url and alt
102
- if alt
+ if alt && !alt.empty?
103
%[<img src="#{CGI.escapeHTML(url)}" alt="#{CGI.escapeHTML(alt)}">]
104
else
105
%[<img src="#{CGI.escapeHTML(url)}">]
0 commit comments