From: Vladimír Vondruš Date: Mon, 11 Sep 2017 11:21:30 +0000 (+0200) Subject: m.gl: fix link target of :glfn:. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=bd9196c83984076f993155ea92c0cf7df338dc79;p=blog.git m.gl: fix link target of :glfn:. --- diff --git a/pelican-plugins/m/gl.py b/pelican-plugins/m/gl.py index 56018eda..3b3f48f2 100644 --- a/pelican-plugins/m/gl.py +++ b/pelican-plugins/m/gl.py @@ -15,7 +15,7 @@ def glext(name, rawtext, text, lineno, inliner, options={}, content=[]): def glfn(name, rawtext, text, lineno, inliner, options={}, content=[]): title, fn = parse_link(text) if not title: title = "gl{}()".format(fn) - url = "https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/gl{}.xhtml".format(name) + url = "https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/gl{}.xhtml".format(fn) node = nodes.reference(rawtext, title, refuri=url, **options) return [node], []