diff options
| author | georg.brandl <devnull@localhost> | 2008-03-25 12:32:03 +0000 |
|---|---|---|
| committer | georg.brandl <devnull@localhost> | 2008-03-25 12:32:03 +0000 |
| commit | d10cbd4c49daa6a5a07868f9e19eee6e25f89293 (patch) | |
| tree | ad3ab19013aa72073aeafa45628a186d5323679a /sphinx/roles.py | |
| parent | 9fa0421f13a4f560ff3a7daaa9253a6e9d82e285 (diff) | |
| download | sphinx-d10cbd4c49daa6a5a07868f9e19eee6e25f89293.tar.gz | |
Support the image directive.
Diffstat (limited to 'sphinx/roles.py')
| -rw-r--r-- | sphinx/roles.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/roles.py b/sphinx/roles.py index 7665340d..d9927165 100644 --- a/sphinx/roles.py +++ b/sphinx/roles.py @@ -120,6 +120,8 @@ def xfileref_role(typ, rawtext, text, lineno, inliner, options={}, content=[]): # we want a cross-reference, create the reference node pnode = addnodes.pending_xref(rawtext, reftype=typ, refcaption=False, modname=env.currmodule, classname=env.currclass) + # we may need the line number for warnings + pnode.line = lineno innertext = text # special actions for Python object cross-references if typ in ('data', 'exc', 'func', 'class', 'const', 'attr', 'meth', 'mod'): |
