Format a string for screen printing. This removes some latex-type format codes.
(strng: str)
| 340 | |
| 341 | |
| 342 | def 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 | |
| 352 | def dedent(text: str) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…