Avoid text wrapping in the middle of a phrase by adding non-breaking spaces where there previously were normal spaces.
(value)
| 506 | |
| 507 | |
| 508 | def avoid_wrapping(value): |
| 509 | """ |
| 510 | Avoid text wrapping in the middle of a phrase by adding non-breaking |
| 511 | spaces where there previously were normal spaces. |
| 512 | """ |
| 513 | return value.replace(" ", "\xa0") |
| 514 | |
| 515 | |
| 516 | def html_safe(klass): |
no outgoing calls
no test coverage detected