MCPcopy Create free account
hub / github.com/catchorg/Catch2 / readLines

Function readLines

tools/scripts/updateDocumentToC.py:40–45  ·  view source on GitHub ↗

Returns a list of lines from a input markdown file.

(in_file)

Source from the content-addressed store, hash-verified

38VALIDS = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-&'
39
40def readLines(in_file):
41 """Returns a list of lines from a input markdown file."""
42
43 with open(in_file, 'r') as inf:
44 in_contents = inf.read().split('\n')
45 return in_contents
46
47def removeLines(lines, remove=('[[back to top]', '<a class="mk-toclify"')):
48 """Removes existing [back to top] links and <a id> tags."""

Callers 1

markdownToclifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected