Fix #7894: gettext: Wrong source info is shown when using rst_epilog

This commit is contained in:
Takeshi KOMIYA
2020-07-07 01:22:36 +09:00
parent 44ee514fbe
commit 6d053a683e
4 changed files with 9 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ def test_RSTParser_prolog_epilog(RSTStateMachine, app):
(content, _), _ = RSTStateMachine().run.call_args
assert list(content.xitems()) == [('dummy.rst', 0, 'hello Sphinx world'),
('dummy.rst', 1, 'Sphinx is a document generator'),
('<generated>', 0, ''),
('dummy.rst', 2, ''),
('<rst_epilog>', 0, 'this is rst_epilog'),
('<rst_epilog>', 1, 'good-bye reST!')]