avoid_wrapping
Avoid text wrapping in the middle of a phrase by adding non-breaking spaces where there previously were normal spaces.
def avoid_wrapping(
value: string
) - > string
Avoid text wrapping in the middle of a phrase by adding non-breaking spaces where there previously were normal spaces.
Parameters
| Name | Type | Description |
|---|---|---|
| value | string | The text content where line breaks between words should be prevented. |
Returns
| Type | Description |
|---|---|
string | The input string with all standard space characters replaced by non-breaking space characters (\xa0). |