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 | 1383c1eb2d2debd90225b1552aba01a51c508a52 (patch) | |
tree | 45d863a789d675e33aeb2f32879241ae0e8264dc /lib/rdoc/diagram.rb | |
parent | 50371feb52ce9433e28910869cbae94a3466235e (diff) |
* 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/branches/ruby_1_8@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 62e2f2e164..9ae9dd6794 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 |