chiark / gitweb /
m.gl: fix link target of :glfn:.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Sep 2017 11:21:30 +0000 (13:21 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Tue, 12 Sep 2017 10:06:26 +0000 (12:06 +0200)
pelican-plugins/m/gl.py

index 56018eda279d0b3e33186cd6a31e56a84f911ec0..3b3f48f2a04e8682ab7ff43595374a677c557932 100644 (file)
@@ -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], []