chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9029045
)
m.gl: fix link target of :glfn:.
author
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 11 Sep 2017 11:21:30 +0000
(13:21 +0200)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Tue, 12 Sep 2017 10:06:26 +0000
(12:06 +0200)
pelican-plugins/m/gl.py
patch
|
blob
|
history
diff --git
a/pelican-plugins/m/gl.py
b/pelican-plugins/m/gl.py
index 56018eda279d0b3e33186cd6a31e56a84f911ec0..3b3f48f2a04e8682ab7ff43595374a677c557932 100644
(file)
--- 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], []