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

Function repl_html

demo/app.py:397–398  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

395 html_pat = rf"(\\definecolor\{{{name_pattern}\}}\{{HTML\}}\{{)[0-9A-Fa-f]{{6}}(\}})"
396
397 def repl_html(m):
398 return f"{m.group(1)}{hexval}{m.group(2)}"
399
400 new_content, n = re.subn(html_pat, repl_html, content, flags=re.MULTILINE)
401

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected