diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-13 10:27:52 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-13 10:27:52 +0000 |
commit | c9bfc9bb43bf39e70d5e9a25054641817238a83e (patch) | |
tree | c2a1369794c508e5655fe922260be7617f969182 /lib/rdoc/diagram.rb | |
parent | 016f0e0c84e616f17ddadd20ac783009332c5245 (diff) | |
download | ruby-c9bfc9bb43bf39e70d5e9a25054641817238a83e.tar.gz |
* lib/rdoc/diagram.rb:
- properly quote bare element attributes
- terminates dangling elements (e.g. <img>, <br>, <link>, etc)
- converts "CVS" to the more HTML-friendly acronym element
- adds missing type attributes to style elements
based on Paul Duncan's patch <pabs@pablotron.org> [ruby-core:7028]
* lib/rdoc/generators/html_generator.rb: ditto.
* lib/rdoc/generators/template/html/hefss.rb: ditto.
* lib/rdoc/generators/template/html/html.rb: ditto.
* lib/rdoc/generators/template/html/kilmer.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/diagram.rb')
-rw-r--r-- | lib/rdoc/diagram.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rdoc/diagram.rb b/lib/rdoc/diagram.rb index 40335e854b..bbaa704365 100644 --- a/lib/rdoc/diagram.rb +++ b/lib/rdoc/diagram.rb @@ -320,13 +320,13 @@ module RDoc xs, ys = [$1.to_i, $3.to_i], [$2.to_i, $4.to_i] url, area_name = $5, $6 - res << %{ <area shape="RECT" coords="#{xs.min},#{ys.min},#{xs.max},#{ys.max}" } - res << %{ href="#{url}" alt="#{area_name}">\n} + res << %{ <area shape="rect" coords="#{xs.min},#{ys.min},#{xs.max},#{ys.max}" } + res << %{ href="#{url}" alt="#{area_name}" />\n} end res << "</map>\n" # map_file = src.sub(/.dot/, '.map') # system("dot -Timap #{src} -o #{map_file}") - res << %{<img src="#{dot}" usemap="#map" border=0 alt="#{name}">} + res << %{<img src="#{dot}" usemap="#map" border="0" alt="#{name}" />} return res end end |