MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / _esc

Function _esc

Scripts/emit_docs.py:90–92  ·  view source on GitHub ↗

Escape pipe characters for Markdown table cells.

(s: str)

Source from the content-addressed store, hash-verified

88 return f'`{type_str}`'
89
90def _esc(s: str) -> str:
91 """Escape pipe characters for Markdown table cells."""
92 return s.replace('|', '\\|')
93
94def _brief_or_empty(obj: dict) -> str:
95 return _esc(_clean_brief(obj.get('brief', '') or ''))

Callers 5

_brief_or_emptyFunction · 0.85
_link_typeFunction · 0.85
_render_classFunction · 0.85
_render_enumFunction · 0.85
_write_api_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected