MCPcopy
hub / github.com/sphinx-doc/sphinx / extract_original_messages

Method extract_original_messages

sphinx/addnodes.py:84–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 self['caption'] = translated_message
83
84 def extract_original_messages(self) -> list[str]:
85 messages: list[str] = []
86
87 # toctree entries
88 messages.extend(self.get('rawentries', []))
89
90 # :caption: option
91 if 'rawcaption' in self:
92 messages.append(self['rawcaption'])
93 return messages
94
95
96#############################################################

Callers 1

extract_messagesFunction · 0.45

Calls 2

getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected