diff options
author | Julien Palard <julien@palard.fr> | 2018-11-07 21:42:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-07 21:42:40 (GMT) |
commit | beed84ca5e0f2784d758478d4e7c81c9c1088c4e (patch) | |
tree | 4cf123a6a956ac04ee69470bf5a2b56078dfaf7b | |
parent | a6e956bcb0edbfe7f18af9be2215a5326ea6bf05 (diff) | |
download | cpython-beed84ca5e0f2784d758478d4e7c81c9c1088c4e.zip cpython-beed84ca5e0f2784d758478d4e7c81c9c1088c4e.tar.gz cpython-beed84ca5e0f2784d758478d4e7c81c9c1088c4e.tar.bz2 |
bpo-35015: Doc: Fix internationalisation of the availability directive. (GH-10360)
-rw-r--r-- | Doc/tools/extensions/pyspecific.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 08fa9df..10e4a4d 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -141,9 +141,10 @@ class Availability(Directive): final_argument_whitespace = True def run(self): - pnode = nodes.paragraph(classes=['availability']) - n, m = self.state.inline_text(':ref:`Availability <availability>`: ', - self.lineno) + availability_ref = ':ref:`Availability <availability>`: ' + pnode = nodes.paragraph(availability_ref + self.arguments[0], + classes=["availability"],) + n, m = self.state.inline_text(availability_ref, self.lineno) pnode.extend(n + m) n, m = self.state.inline_text(self.arguments[0], self.lineno) pnode.extend(n + m) |