[Epydoc-commits] SF.net SVN: epydoc: [1565] trunk/epydoc/src/epydoc/docwriter
Brought to you by:
edloper
|
From: <dva...@us...> - 2007-03-01 23:40:07
|
Revision: 1565
http://svn.sourceforge.net/epydoc/?rev=1565&view=rev
Author: dvarrazzo
Date: 2007-03-01 15:40:03 -0800 (Thu, 01 Mar 2007)
Log Message:
-----------
- Some HTML cleanup.
Modified Paths:
--------------
trunk/epydoc/src/epydoc/docwriter/dotgraph.py
trunk/epydoc/src/epydoc/docwriter/html.py
trunk/epydoc/src/epydoc/docwriter/html_colorize.py
Modified: trunk/epydoc/src/epydoc/docwriter/dotgraph.py
===================================================================
--- trunk/epydoc/src/epydoc/docwriter/dotgraph.py 2007-03-01 04:03:01 UTC (rev 1564)
+++ trunk/epydoc/src/epydoc/docwriter/dotgraph.py 2007-03-01 23:40:03 UTC (rev 1565)
@@ -184,7 +184,7 @@
s += ' -- '
if caption:
s += '<span class="graph-caption">%s</span>' % caption
- s += '\n </td></tr>\n</table><br/>'
+ s += '\n </td></tr>\n</table><br />'
if center: s += '</center>'
return s
@@ -1004,8 +1004,8 @@
######################################################################
def class_tree_graph(bases, linker, context=None, **options):
"""
- Return a `DotGraph` that graphically displays the package
- hierarchies for the given packages.
+ Return a `DotGraph` that graphically displays the class
+ hierarchy for the given classes.
"""
graph = DotGraph('Class Hierarchy for %s' % name_list(bases, context),
body='ranksep=0.3\n',
@@ -1263,7 +1263,7 @@
specialize_valdoc_node(node, val_doc, context, linker.url_for(val_doc))
return nodes
-NOOP_URL = 'javascript: void(0);'
+NOOP_URL = 'javascript:void(0);'
MODULE_NODE_HTML = '''
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="0"
CELLPADDING="0" PORT="table" ALIGN="LEFT">
Modified: trunk/epydoc/src/epydoc/docwriter/html.py
===================================================================
--- trunk/epydoc/src/epydoc/docwriter/html.py 2007-03-01 04:03:01 UTC (rev 1564)
+++ trunk/epydoc/src/epydoc/docwriter/html.py 2007-03-01 23:40:03 UTC (rev 1565)
@@ -1013,15 +1013,15 @@
# Alphabetical sections.
sections = [s for s in sections if s in index_by_section]
if sections:
- out('<table border="0" width="100%"><tr valign="top">\n')
+ out('<table border="0" width="100%">\n')
for section in sorted(sections):
- out('<td valign="top" width="1%">')
- out('<a name="%s"><h2 class="epydoc">%s</h2></a></td>\n' %
+ out('<tr valign="top"><td valign="top" width="1%">')
+ out('<h2 class="epydoc"><a name="%s">%s</a></h2></td>\n' %
(section, section))
out('<td valign="top">\n')
self.write_index_section(out, index_by_section[section], True)
out('</td></tr>\n')
- out('</table>\n</br />')
+ out('</table>\n<br />')
# Footer material.
out('<br />')
@@ -1040,7 +1040,7 @@
'%s-index.html' % field)
# Page title.
- out('<a name="%s"><h1 class="epydoc">%s</h1></a>\n<br />\n' %
+ out('<h1 class="epydoc"><a name="%s">%s</a></h1>\n<br />\n' %
(field, title))
# Index (one section per arg)
@@ -1070,7 +1070,6 @@
self.docstring_to_html(descr,doc,4))
out(' </ul>\n')
out('</table></div>\n')
- out('</dl>\n')
# Footer material.
out('<br />')
@@ -1117,7 +1116,7 @@
else:
label = container.canonical_name[-1]
out('<span class="index-where">(in %s)'
- '</font>' % self.href(container, label))
+ '</span>' % self.href(container, label))
else:
out(' ')
out('</td>\n')
Modified: trunk/epydoc/src/epydoc/docwriter/html_colorize.py
===================================================================
--- trunk/epydoc/src/epydoc/docwriter/html_colorize.py 2007-03-01 04:03:01 UTC (rev 1564)
+++ trunk/epydoc/src/epydoc/docwriter/html_colorize.py 2007-03-01 23:40:03 UTC (rev 1565)
@@ -52,7 +52,7 @@
var elt = document.getElementById(id+"-expanded-linenums");
if (elt) elt.style.display = "none";
var elt = document.getElementById(id+"-collapsed-linenums");
- if (elt) { elt.innerHTML = "<br/>"; elt.style.display="block"; }
+ if (elt) { elt.innerHTML = "<br />"; elt.style.display="block"; }
var elt = document.getElementById(id+"-toggle");
if (elt) { elt.innerHTML = "+"; }
var elt = document.getElementById(id+"-collapsed");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|