MCPcopy
hub / github.com/jisaacks/GitGutter / _dump_chunk

Function _dump_chunk

modules/popup/differ.py:154–160  ·  view source on GitHub ↗

Generate comparison results for a same-tagged range.

(tag, x)

Source from the content-addressed store, hash-verified

152
153
154def _dump_chunk(tag, x):
155 """Generate comparison results for a same-tagged range."""
156 if tag:
157 yield ''.join(('<span class="hi-', tag, '">'))
158 yield from _to_html(x)
159 if tag:
160 yield '</span>'
161
162
163def _to_html(text):

Callers 2

_fancy_replaceFunction · 0.85
_dump_lineFunction · 0.85

Calls 1

_to_htmlFunction · 0.85

Tested by

no test coverage detected