strip n spaces of every line in text
(text, n)
| 367 | |
| 368 | |
| 369 | def strip_space(text, n): |
| 370 | """strip n spaces of every line in text""" |
| 371 | lines = ( |
| 372 | i[n:] if (i[:n] == ' ' * n) else i |
| 373 | for i in text.splitlines() |
| 374 | ) |
| 375 | return '\n'.join(lines) |
| 376 | |
| 377 | |
| 378 | def check_dom_name_value(value, name='`name`'): |
no outgoing calls
no test coverage detected
searching dependent graphs…