Fix ref URL of the pr role.

This commit is contained in:
Berker Peksag 2014-11-27 05:08:07 +02:00
parent d12fc05de0
commit 496c207a26

View File

@ -74,7 +74,7 @@ def issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
def pull_request_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
issue = utils.unescape(text)
text = 'pull request ' + issue
refnode = nodes.reference(text, text, refuri=ISSUE_URI % issue)
refnode = nodes.reference(text, text, refuri=PULL_REQUEST_URI % issue)
return [refnode], []