We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gettext
1 parent 1573d90 commit 95f5c89Copy full SHA for 95f5c89
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