Skip to main content

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

NameTypeDescription
valuestringThe text content where line breaks between words should be prevented.

Returns

TypeDescription
stringThe input string with all standard space characters replaced by non-breaking space characters (\xa0).