ul end tag fix, and css tweak
This commit is contained in:
parent
fae6ff9aab
commit
3c6d78b920
4
refpolicy/doc/templates/style.css
vendored
4
refpolicy/doc/templates/style.css
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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":
|
||||||
desc_buf += "<p>" + desc.firstChild.data + "</p>"
|
if desc.firstChild.data is not '':
|
||||||
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user