]> granicus.if.org Git - python/commitdiff
bpo-35015: Doc: Fix internationalisation of the availability directive. (GH-10360)
authorJulien Palard <julien@palard.fr>
Wed, 7 Nov 2018 21:42:40 +0000 (22:42 +0100)
committerGitHub <noreply@github.com>
Wed, 7 Nov 2018 21:42:40 +0000 (22:42 +0100)
Doc/tools/extensions/pyspecific.py

index 08fa9df441833ddaf16439a24464c46354c4a5d7..10e4a4d11671966ef152390cce58c426eba779bd 100644 (file)
@@ -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)