MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / clean_caption_prefix

Function clean_caption_prefix

demo/posterbuilder/convert.py:522–524  ·  view source on GitHub ↗
(cap: str)

Source from the content-addressed store, hash-verified

520)
521
522def clean_caption_prefix(cap: str) -> str:
523 if not cap: return ""
524 return CAP_PREFIX_RE.sub("", cap).strip()
525
526def build_figures_for_sections(sections, panels_by_id, figures, cap_full, cap_base):
527 sec_name_to_idx = {norm_title(sec.get("title","")): i

Callers 1

Calls 1

subMethod · 0.45

Tested by

no test coverage detected