Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gettext
1 parent 57ba3b0 commit 4210a7dCopy full SHA for 4210a7d
1 file changed
Doc/tools/extensions/audit_events.py
@@ -149,13 +149,15 @@ def run(self) -> list[nodes.paragraph]:
149
node = nodes.paragraph("", classes=["audit-hook"], ids=ids)
150
self.set_source_info(node)
151
if self.content:
152
+ node.rawsource = '\n'.join(self.content) # for gettext
153
self.state.nested_parse(self.content, self.content_offset, node)
154
else:
155
num_args = min(2, len(args))
156
text = self._label[num_args].format(
157
name=f"``{name}``",
158
args=", ".join(f"``{a}``" for a in args),
159
)
160
+ node.rawsource = text # for gettext
161
parsed, messages = self.state.inline_text(text, self.lineno)
162
node += parsed
163
node += messages
0 commit comments