MCPcopy Create free account
hub / github.com/aitjcize/cppman / escape_pre_section

Function escape_pre_section

cppman/formatter/cplusplus.py:142–147  ·  view source on GitHub ↗

Escape section in table.

(table)

Source from the content-addressed store, hash-verified

140
141
142def escape_pre_section(table):
143 """Escape <pre> section in table."""
144 def replace_newline(g):
145 return g.group(1).replace('\n', '\n.br\n')
146
147 return re.sub('<pre.*?>(.*?)</pre>', replace_newline, table, flags=re.S)
148
149
150def html2groff(data, name):

Callers 1

html2groffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected