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

Method preserve_original_messages

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

Source from the content-addressed store, hash-verified

59 """Node for inserting a "TOC tree"."""
60
61 def preserve_original_messages(self) -> None:
62 # toctree entries
63 rawentries: list[str] = self.setdefault('rawentries', [])
64 for title, _docname in self['entries']:
65 if title:
66 rawentries.append(title)
67
68 # :caption: option
69 if self.get('caption'):
70 self['rawcaption'] = self['caption']
71
72 def apply_translated_message(
73 self, original_message: str, translated_message: str

Callers 1

applyMethod · 0.45

Calls 3

setdefaultMethod · 0.80
appendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected