Just display, no paging. screen_lines is ignored.
(strng, start=0, screen_lines=25)
| 34 | |
| 35 | |
| 36 | def display_page(strng, start=0, screen_lines=25): |
| 37 | """Just display, no paging. screen_lines is ignored.""" |
| 38 | if isinstance(strng, dict): |
| 39 | data = strng |
| 40 | else: |
| 41 | if start: |
| 42 | strng = u'\n'.join(strng.splitlines()[start:]) |
| 43 | data = { 'text/plain': strng } |
| 44 | display(data, raw=True) |
| 45 | |
| 46 | |
| 47 | def as_hook(page_func): |
nothing calls this directly
no test coverage detected
searching dependent graphs…