MCPcopy Index your code
hub / github.com/ipython/ipython / format_screen

Function format_screen

IPython/utils/text.py:342–349  ·  view source on GitHub ↗

Format a string for screen printing. This removes some latex-type format codes.

(strng: str)

Source from the content-addressed store, hash-verified

340
341
342def format_screen(strng: str) -> str:
343 """Format a string for screen printing.
344
345 This removes some latex-type format codes."""
346 # Paragraph continue
347 par_re = re.compile(r'\\$',re.MULTILINE)
348 strng = par_re.sub('',strng)
349 return strng
350
351
352def dedent(text: str) -> str:

Callers 1

magicMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…