Put coord, value in template and truncate at maxchar
(coord, value, maxchar, template)
| 44 | |
| 45 | |
| 46 | def _nicetitle(coord, value, maxchar, template): |
| 47 | """ |
| 48 | Put coord, value in template and truncate at maxchar |
| 49 | """ |
| 50 | prettyvalue = format_item(value, quote_strings=False) |
| 51 | title = template.format(coord=coord, value=prettyvalue) |
| 52 | |
| 53 | if len(title) > maxchar: |
| 54 | title = title[: (maxchar - 3)] + "..." |
| 55 | |
| 56 | return title |
| 57 | |
| 58 | |
| 59 | def _auto_grid( |
nothing calls this directly
no test coverage detected
searching dependent graphs…