fix for lineno and filename attributes
This commit is contained in:
parent
fe21026830
commit
bff1cef8fe
@ -401,8 +401,8 @@ def gen_docs(doc, working_dir, templatedir):
|
|||||||
for interface in node.getElementsByTagName("interface"):
|
for interface in node.getElementsByTagName("interface"):
|
||||||
interface_parameters = []
|
interface_parameters = []
|
||||||
interface_desc = interface_summary = None
|
interface_desc = interface_summary = None
|
||||||
for i,v in interface.attributes.items():
|
interface_name = interface.getAttribute("name")
|
||||||
interface_name = v
|
interface_line = interface.getAttribute("lineno")
|
||||||
for desc in interface.getElementsByTagName("desc"):
|
for desc in interface.getElementsByTagName("desc"):
|
||||||
interface_desc = format_html_desc(desc)
|
interface_desc = format_html_desc(desc)
|
||||||
for desc in interface.getElementsByTagName("summary"):
|
for desc in interface.getElementsByTagName("summary"):
|
||||||
@ -410,14 +410,11 @@ def gen_docs(doc, working_dir, templatedir):
|
|||||||
|
|
||||||
for args in interface.getElementsByTagName("param"):
|
for args in interface.getElementsByTagName("param"):
|
||||||
paramdesc = args.firstChild.data
|
paramdesc = args.firstChild.data
|
||||||
paramname = None
|
paramname = args.getAttribute("name")
|
||||||
|
if args.getAttribute("optional") == "true":
|
||||||
|
paramopt = "Yes"
|
||||||
|
else:
|
||||||
paramopt = "No"
|
paramopt = "No"
|
||||||
for name,val in args.attributes.items():
|
|
||||||
if name == "name":
|
|
||||||
paramname = val
|
|
||||||
if name == "optional":
|
|
||||||
if val == "true":
|
|
||||||
paramopt = "yes"
|
|
||||||
parameter = { "name" : paramname,
|
parameter = { "name" : paramname,
|
||||||
"desc" : paramdesc,
|
"desc" : paramdesc,
|
||||||
"optional" : paramopt }
|
"optional" : paramopt }
|
||||||
@ -443,8 +440,8 @@ def gen_docs(doc, working_dir, templatedir):
|
|||||||
for template in node.getElementsByTagName("template"):
|
for template in node.getElementsByTagName("template"):
|
||||||
template_parameters = []
|
template_parameters = []
|
||||||
template_desc = template_summary = None
|
template_desc = template_summary = None
|
||||||
for i,v in template.attributes.items():
|
template_name = template.getAttribute("name")
|
||||||
template_name = v
|
template_line = template.getAttribute("lineno")
|
||||||
for desc in template.getElementsByTagName("desc"):
|
for desc in template.getElementsByTagName("desc"):
|
||||||
template_desc = format_html_desc(desc)
|
template_desc = format_html_desc(desc)
|
||||||
for desc in template.getElementsByTagName("summary"):
|
for desc in template.getElementsByTagName("summary"):
|
||||||
@ -452,14 +449,11 @@ def gen_docs(doc, working_dir, templatedir):
|
|||||||
|
|
||||||
for args in template.getElementsByTagName("param"):
|
for args in template.getElementsByTagName("param"):
|
||||||
paramdesc = args.firstChild.data
|
paramdesc = args.firstChild.data
|
||||||
paramname = None
|
paramname = args.getAttribute("name")
|
||||||
|
if args.getAttribute("optional") == "true":
|
||||||
|
paramopt = "Yes"
|
||||||
|
else:
|
||||||
paramopt = "No"
|
paramopt = "No"
|
||||||
for name,val in args.attributes.items():
|
|
||||||
if name == "name":
|
|
||||||
paramname = val
|
|
||||||
if name == "optional":
|
|
||||||
if val == "true":
|
|
||||||
paramopt = "yes"
|
|
||||||
parameter = { "name" : paramname,
|
parameter = { "name" : paramname,
|
||||||
"desc" : paramdesc,
|
"desc" : paramdesc,
|
||||||
"optional" : paramopt }
|
"optional" : paramopt }
|
||||||
|
Loading…
Reference in New Issue
Block a user