From a5c8ef9f1a55cf22fbe5637ca8b17e409f7ccc83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 16 Jan 2018 13:54:29 +0100 Subject: [PATCH] m.dox: some patches to make this work with the cppreference tag file. --- pelican-plugins/m/dox.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pelican-plugins/m/dox.py b/pelican-plugins/m/dox.py index c23b1cc2..a5b6f4e2 100644 --- a/pelican-plugins/m/dox.py +++ b/pelican-plugins/m/dox.py @@ -73,7 +73,7 @@ def init(pelicanobj): # Linking to namespaces, structs and classes if child.attrib['kind'] in ['class', 'struct', 'namespace']: name = child.find('name').text - link = path + child.find('filename').text + link = path + child.findtext('filename') # can be empty (cppreference tag file) symbol_mapping[name] = (None, link) for member in child.findall('member'): if not 'kind' in member.attrib: continue @@ -84,7 +84,8 @@ def init(pelicanobj): # Functions if member.attrib['kind'] == 'function': - symbol_mapping[name + '::' + member.find('name').text + "()"] = (None, link + '#' + member.find('anchor').text) + # can be empty (cppreference tag file) + symbol_mapping[name + '::' + member.find('name').text + "()"] = (None, link + '#' + member.findtext('anchor')) # Enums with values if member.attrib['kind'] == 'enumeration': -- 2.30.2