mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-21 14:44:44 +00:00
write parent line/col as attrs
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2765 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
a461512733
commit
842333a36f
1 changed files with 6 additions and 3 deletions
|
|
@ -51,9 +51,12 @@ class CustomXMLLogger (linkcheck.logger.xmllog.XMLLogger):
|
|||
if url_data.name and self.has_part('name'):
|
||||
self.xml_tag(u"name", unicode(url_data.name or u""))
|
||||
if url_data.parent_url and self.has_part('parenturl'):
|
||||
self.xml_tag(u"parent", unicode(url_data.parent_url or u""))
|
||||
self.xml_tag(u"parentline", u"%d" % url_data.line)
|
||||
self.xml_tag(u"parentcolumn", u"%d" % url_data.column)
|
||||
attrs = {
|
||||
u'line': u"%d" % url_data.line,
|
||||
u'column': u"%d" % url_data.column,
|
||||
}
|
||||
self.xml_tag(u"parent", unicode(url_data.parent_url or u""),
|
||||
attrs=attrs)
|
||||
if url_data.base_ref and self.has_part('base'):
|
||||
self.xml_tag(u"baseref", unicode(url_data.base_ref))
|
||||
if self.has_part("realurl"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue