ul end tag fix, and css tweak

This commit is contained in:
Chris PeBenito 2005-06-13 18:07:35 +00:00
parent fae6ff9aab
commit 3c6d78b920
2 changed files with 7 additions and 4 deletions

View File

@ -37,7 +37,7 @@ h5 {
} }
li { li {
font:11px/20px verdana, arial, helvetica, sans-serif; font:11px/20px verdana, arial, helvetica, sans-serif;
margin:0px 0px 0px 0px; margin:0px 0px 0px 10px;
padding:0px; padding:0px;
} }
p { p {
@ -167,7 +167,7 @@ dt {
} }
body>#Header {height:14px;} body>#Header {height:14px;}
#Content { #Content {
margin:0px 50px 50px 200px; margin:0px 50px 0px 200px;
padding:10px; padding:10px;
} }

View File

@ -100,14 +100,17 @@ def format_html_desc(node):
desc_buf = '' desc_buf = ''
for desc in node.childNodes: for desc in node.childNodes:
if desc.nodeName == "#text": if desc.nodeName == "#text":
desc_buf += "<p>" + desc.data + "<p>" if desc.data is not '':
desc_buf += "<p>" + desc.data + "</p>"
elif desc.nodeName == "p": elif desc.nodeName == "p":
if desc.firstChild.data is not '':
desc_buf += "<p>" + desc.firstChild.data + "</p>" desc_buf += "<p>" + desc.firstChild.data + "</p>"
for chld in desc.childNodes: for chld in desc.childNodes:
if chld.nodeName == "ul": if chld.nodeName == "ul":
desc_buf += "<ul>" desc_buf += "<ul>"
for li in chld.getElementsByTagName("li"): for li in chld.getElementsByTagName("li"):
desc_buf += "<li>" + li.firstChild.data + "</li>" desc_buf += "<li>" + li.firstChild.data + "</li>"
desc_buf += "</ul>"
return desc_buf return desc_buf