MCPcopy Create free account
hub / github.com/ipython/ipython / format_screen

Function format_screen

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

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

(strng)

Source from the content-addressed store, hash-verified

347
348
349def format_screen(strng):
350 """Format a string for screen printing.
351
352 This removes some latex-type format codes."""
353 # Paragraph continue
354 par_re = re.compile(r'\\$',re.MULTILINE)
355 strng = par_re.sub('',strng)
356 return strng
357
358
359def dedent(text):

Callers 1

magicMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected