Commit 32574117 authored by Amos Latteier's avatar Amos Latteier

Fixed a doc string display bug, and tweaked the API Documentation display to...

Fixed a doc string display bug, and tweaked the API Documentation display to look better with API docs that have lots of mostly empty classes.
parent b79e0f91
......@@ -329,6 +329,8 @@ def trim_doc_string(text):
if len(lines) > 1:
min_indent=None
for line in lines[1:]:
if not line:
continue
indent=len(line) - len(string.lstrip(line))
if indent < min_indent or min_indent is None:
min_indent=indent
......@@ -337,4 +339,3 @@ def trim_doc_string(text):
return string.join(nlines, '\n')
......@@ -3,6 +3,7 @@
<h1>API Documentation</h1>
<dtml-if "_.len(apis) > 1">
<h3>Classes</h3>
<dl><dd>
<h2 class="api">
<dtml-in apis>
......@@ -25,4 +26,4 @@
</dtml-unless>
</dtml-in>
<dtml-var standard_html_footer>
\ No newline at end of file
<dtml-var standard_html_footer>
<a name="<dtml-var name>"></a>
<h2 class="api">
<dtml-var name>
<dtml-if extends>
(
<dtml-in extends>
<a href="/Control_Panel/Products/<dtml-var sequence-item>"><dtml-var sequence-key></a>
<dtml-unless sequence-end>,</dtml-unless>
</dtml-in>
)
</dtml-if>
<h2 class="api">class
<dtml-var name><dtml-if extends>
(<dtml-in extends>
<a href="/Control_Panel/Products/<dtml-var sequence-item>"><dtml-var
sequence-key></a><dtml-unless sequence-end>, </dtml-unless>
</dtml-in>)
</dtml-if>
</h2>
<dl>
......@@ -18,7 +15,7 @@
</dl>
<dtml-if constructor>
<hr noshade>
<hr>
<h3>Product Constructor</h3>
<dtml-with constructor>
<dtml-var view>
......@@ -26,7 +23,7 @@
</dtml-if>
<dtml-if "attributes or methods">
<hr noshade>
<hr>
</dtml-if>
<dtml-in attributes>
......@@ -40,3 +37,4 @@
</dtml-in>
</dtml-if>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment