From 8853823c69b27c55dcf441aeb7bea4f81b16a554 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 22 Feb 2019 18:48:19 +0100 Subject: [PATCH] m.dox: the doesn't need to have . Happens with the updated STL tag files from cppreference.com. --- pelican-plugins/m/dox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pelican-plugins/m/dox.py b/pelican-plugins/m/dox.py index fb2de77c..28dbf866 100644 --- a/pelican-plugins/m/dox.py +++ b/pelican-plugins/m/dox.py @@ -80,8 +80,9 @@ def init(pelicanobj): # Linking to files if child.attrib['kind'] == 'file': + file_path = child.find('path') link = path + child.find('filename').text + ".html" - symbol_mapping[child.find('path').text + child.find('name').text] = (None, link, css_classes) + symbol_mapping[(file_path.text if file_path is not None else '') + child.find('name').text] = (None, link, css_classes) for member in child.findall('member'): if not 'kind' in member.attrib: continue -- 2.30.2