unroll problematic refs to their origin in document when reporting errors
commit6090cd3f2de8f6088438e23406f0cf9c892f99f2
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Thu, 4 May 2017 20:10:03 +0000 (4 20:10 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Thu, 4 May 2017 20:10:03 +0000 (4 20:10 +0000)
tree58a37d102e7b8d4cfd1c5f5b3fd15a05baebdf4e
parent596257baf7a731cabf850dfb6bb0f97196b6cae0
unroll problematic refs to their origin in document when reporting errors

Patch by Kirill Smelkov. This is part of the (partially outdated) suite of
patches on https://sourceforge.net/p/docutils/patches/67/.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8067 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/docutils/transforms/references.py
docutils/test/test_transforms/test_substitutions.py