From: Vladimír Vondruš Date: Fri, 22 Feb 2019 17:48:19 +0000 (+0100) Subject: m.dox: the doesn't need to have . X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=8853823c69b27c55dcf441aeb7bea4f81b16a554;p=blog.git m.dox: the doesn't need to have . Happens with the updated STL tag files from cppreference.com. --- 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